Jumping on top of as a means of destruction

lowskilowski Member Posts: 25
edited November -1 in Working with GS (Mac)
How would I make my player actor destroy an enemy actor by jumping on top of it? I'm a bit perplexed as my enemy must also destroy my player if they collide on the horizontal plane. I searched the forums to see if anyone else had this problem but I found none.

Comments

  • AfterBurnettAfterBurnett Member Posts: 3,474
    You COULD use an invisible actor that is skinnier than your enemy sprite but taller... this way when the enemy walks into you, you die but if you jump on top you would trigger the skinner actor first. You'd need to obviously set them up to follow each other etc but should work... bit of a cheat though, must be another way...
  • lowskilowski Member Posts: 25
    Wouldn't that just destroy the invisible actor and leave the enemy to destroy my player as he falls back down?
  • lowskilowski Member Posts: 25
    Just found what I needed thanks to a video by tshirtbooth
  • scitunesscitunes Member, Sous Chef Posts: 4,047
    I have a demo on this as well. see my profile
  • iPhoneDevForMeiPhoneDevForMe Member Posts: 362
    Which video? Im interested in this solution as well!
  • lowskilowski Member Posts: 25
    Tshirtbooth's video is here: http://tinyurl.com/22u4ufh

    but I actually found a better solution with Scitune's demo, although I am having one issue. The problem is that when my player jumps on top of the enemy both are destroyed. How can I make it so that my player bops the enemy on the head and lands safely down to the platform?
  • AfterBurnettAfterBurnett Member Posts: 3,474
    lowski said:
    Wouldn't that just destroy the invisible actor and leave the enemy to destroy my player as he falls back down?

    Not if you had a boolean set up like EnemyDeath, both could be destroyed when changed to true.
  • lowskilowski Member Posts: 25
    POLYGAMe said:
    Not if you had a boolean set up like EnemyDeath, both could be destroyed when changed to true.

    How would I execute this? (I'm a bit of an amateur)
Sign In or Register to comment.