Thread: random motion
View Single Post
Old
jediaction
Senior Member
 
jediaction's Avatar
 
Status: Offline
Posts: 5,064
Join Date: Jul 2009
Location: Bel Air, Maryland
Default 01-10-2010, 01:42 PM

Quote:
Originally Posted by thearun View Post
I understand that this question has probably been asked many times before, but i really don't get it. I'm making a game for school in which a turtle is moving and you have to click on it to get points. I know about the random number function, and the minimum and maximum, but even with those i can't seem to figure out how to make the turtle stay on the screen.

This is my new plan. I've placed knives all over the screen, and set them to not showing. I'm going to have a variable called movement. Then have it set to a random number between 1 and 44[the number of knives]. Then i put if/else statements that say things like if movement == 2 turtle move to knife 2.

Unfortunately this is not working. Could anyone help me out and figure out what I'm doing wrong. [or give me a new way to do it]
thearun, yoru problem is because you put them showing to false, there not there, change them to visible = true but opacity = 0%. it should work


Website: www.salokingames.com
FaceBook: www.facebook.com/SalokinGames
   
Reply With Quote