If the distance_x * the distance_x + the distance_y * the distance_y is less then or = to the variable "area" then a collision has occured and the text field box named status prints out "Collision Detected. This is used to give you a visual clue that a collision has taken place.
Set Variable: "/:status" = "Collision Detected"
Set Variable: "/:status" = "No Collision Detected"
In this case the text field box named status is instructed to print out..."no Collision Detected.
Which ends the If statement.
|» Level Basic|
Rating: 7 Votes: 68
|Download the files used in this tutorial.|
|Download (51 kb)|
|More help? Search our boards for quick answers!|