View Single Post
Senior Member
GameKid's Avatar
Status: Offline
Posts: 467
Join Date: May 2011
Location: My magnificent castle
Default 02-03-2012, 12:23 AM

Originally Posted by WhiteHole000 View Post
Thank you! But the mummy has to get out of the pyramid somehow! And didn't I do the key thing?
But how do you do collision detection?
Not for the mummy. As for collision detection, put an if/else statement, like so...
If [[Object1] is within [[object2]'s width] of object2]
(Insert your method of colliding with something here. I use move back 0.1 meters, but you can do whatever you like.)
(Insert your method of what happens if object1 is not colliding. Normally, one would insert the moving code.)

If that doesn't help, private message me. I like to help people who have trouble with such things.

[COLOR=e4eaf2]Your text here[/COLOR]
Come on, you know you want to try it.
Reply With Quote