Can a player fall on their face or back and die? - Like a turtle? (Sample attached :)

legomywaco@yahoo.comlegomywaco@yahoo.com Member Posts: 4
edited November 2014 in Working with GS (Mac)

Hi GameSalad Community,

Yes, I'm a noob and I have noob problems...

This is probably an easy one for you all so I was hoping you could help me out.
Is it possible to have a player that when they fall on their face or land on their back - they die?

Imagine a turtle that will die if it lands on it's back, or a car that blows up when it gets flipped.
I've tried reverse-engineering Jim Cross's Recipe 003 collision tut but it just couldn't tweak it to
my dilemma, and I was hoping there was a simple solution that my noob brain can't seem to process.

Any help would be appreciated! Thanks in advance.

-Rob

I put together a very simple sample here. Move to the edge and drop off and try to land on your face ;)
That's where I want the character to die.

https://dl.dropboxusercontent.com/u/18211755/Simple_Example.gameproj.zip

Comments

  • legomywaco@yahoo.comlegomywaco@yahoo.com Member Posts: 4
    edited November 2014
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    How about something like this?

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    In your sample game, try adding this to the Player actor:

  • Thanks Tatiang for taking the time to help me with this. It didn't totally work, but it got me closer than I'd ever get. The Stimpy seemed to work the best and got me pretty close. I'll fiddle around with it some more, thanks again for your insight and time :)

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    You're welcome. It was just a guess by me... not something I've spent much time with. You'll probably figure out a better method.

  • Well I'll tell ya what - using your formula I got it working - thanks again!

  • SocksSocks London, UK.Member Posts: 12,822

    @legomywaco@yahoo.com said:
    Well I'll tell ya what - using your formula I got it working - thanks again!

    If you need something more precise (although it sounds like you probably don't in this particular situation) you can always lock (constrain) 'sensors' to your main actor and use them to detect which part of the main actor has collided with something or been hit.

    I made a little machine to help you to lock two (or more) actors together, so you could have - for example - a character with 5 or 6 sensors locked onto various places on the character's body, and each one could be used to detect collision.

    LinkMachine: http://forums.gamesalad.com/discussion/62202/linkmachine

  • Thanks Socks, this looks very cool. I'm gonna play around with this and see what develops.

Sign In or Register to comment.