Quote:
Originally Posted by WhiteHole000
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.)
Else
(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.