How do I kill bad guys by jumping on their heads

Modified: 2008/05/01 17:07 by BenAnderson - Categorized as: Game Creator, How To Guides
Edit

Kill bad guys by jumping on their heads

Basic Idea: Define 'Disappear' motion on collision. Use the direction filtering of the collision event to make sure they only die when you jump on the bad guy's top side.

Sample Game: http://www.popfly.com/users/team/HowDoI-KillBadGuysByJumping

Details: Actor->Behaviors->Disappear

Image

Choose the disappear behavior (Click the image to view full size)

Actor->Behaviors->Disappear->Event->Collision

Image

Trigger the behavior on the Collision Event (Click the image to view full size)


Notes:
  • You can also add an effect (like an explosion) and a sound to the behavior to make it more exciting!

Privacy. Terms of Use. Trademarks.
ScrewTurn Wiki version 2.0.22. Some of the icons created by FamFamFam.