I'm making a game.. I want my elephant to go up to a, like a board or something.. I want it to JUMP up to it, but I figured out how to jump. But how should I do so that the elephant stays on the board instead of going down again..?
Sorry if my English is so bad.. I'm 11 years and from Sweden
Offline
In your script that causes the elephant to fall, you need something that checks to see if it is standing on the platform and only runs the falling script if it isn't.
The simplest method would be to check "if touching colour" (platform), but that can lead to characters not falling when their head is stuck through the bottom of a platform.
Slightly more complicated is to make the elephants feet a different colour and then you can check
"if colour (feet) touching colour (platform)", which is what I used in my game "Gobo and the flood"
***
There are more complicated methods, but that should get you started
Last edited by Mayhem (2008-11-27 16:18:43)
Offline