Destroy Character when jumped on

mburns007mburns007 Member Posts: 1
edited November -1 in Working with GS (Mac)
Hi guy/gals, im working on a game where im trying to make the enemy destroyed only when umped on otherwise it destroys the player.... think of mario based action... any ideas would be grateful.

all the best

Mike

Comments

  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273
    Hey there,

    DeepBlueApps has a templete for this kind of stuff. Check it out: http://www.deepblueapps.com/Deep_Blue_Ideas_Ltd./GSTemplatePFT.html

    It might save you some time :)
    Bray
  • SlickZeroSlickZero Houston, TexasMember, Sous Chef Posts: 2,870
    Easy way is to have a rule with a collision, and conditions. So if the players Y position is higher than the enemies Y position, destroy the enemy. And if the Y position is the same, then destroy the player.

    If one is bigger than the other, you just need to do a little math and figure out how much taller one is than the other, and adjust offsets accordingly.
  • scitunesscitunes Member, Sous Chef Posts: 4,047
    there's also a gs file I made if you search in the creator for "block falling kill". It's not exactly what you are looking for but it is close enough to get you started.
Sign In or Register to comment.