*** Collision checking help ***

outsidethebyteoutsidethebyte Member Posts: 115
edited November -1 in Working with GS (Mac)
I have a snowboarding character, similar to the line rider guy, only his angle is controlled by the accelerometer. I have individuals actors to spawn when he crashes (he falls apart), but I can't figure out how to get him to only die when he lands sideways or on his head. I would use rotation parameters to test this, except I want him to be able to ride a loop.

Help? Thanks in advance.

Comments

  • UtopianGamesUtopianGames Member Posts: 5,692
    You could try constraining a small actor "mask" to the X Y position of your character something like constrain self.position X to Character X, constrain self.position Y to character Y + 100 (change 100 until you have it where his head is) then if the mask collides with platforms you know he's landed on his head.

    If your doing what i think your doing then you might need to add in the angle of your character to keep the mask where the head is, maybe using cos & sin...not sure.

    Darren.
  • outsidethebyteoutsidethebyte Member Posts: 115
    thanks. one problem is that because of the snowboard, the image is 64x64. So the hidden actor never actually collides with the line. Is there some way I could use a collision angle or something?
  • UtopianGamesUtopianGames Member Posts: 5,692
    How far advanced is your project?

    Have you got the skiing going round loops etc?

    If you have a level and all the controls in i could take a look for you.

    toyboxuk[at]hotmail.com

    I can't promise i can fix it for you but will certainly try.

    Darren.
  • outsidethebyteoutsidethebyte Member Posts: 115
    It is still in the works but the controls and a level are built. nothing to really make it a game yet. I'll send that later to day. I really appreciate it, thanks.
  • UtopianGamesUtopianGames Member Posts: 5,692
    Sent you a new version over, have a play see what you think.

    My ZZZzzzz time now.

    Darren.
  • outsidethebyteoutsidethebyte Member Posts: 115
    Thanks a million! Works perfectly.
Sign In or Register to comment.