View Single Post
Senior Member
reuben2011's Avatar
Status: Offline
Posts: 489
Join Date: Sep 2009
Location: Hawaii
Default 03-23-2011, 05:13 PM

Assuming that your using a method named onClick for the "when an object is clicked" and you have a variable named alreadyClicked whose initial value is false, this is what the code for onClick would look like.

if alreadyClicked == false
alreadyClicked set value to true
//put methods for the first time it's clicked
} else {
//put methods for the second time it's clicked
If you want a screenshot of the above code to help you out, just let me know.

-Escape the Kitchen
-That ninja animation
-Hill Collision

Upcoming Projects
-Some penguin adventure game?
Reply With Quote