Platformer Question

bogsmcfunkbogsmcfunk Member Posts: 0
edited February 2012 in Working with GS (Mac)
Hey all.

So i'm making a super mario bro's style platformer. Where I'm running into problems is that I want the player to be able to land on top of a platform but die if he hits the side. My first thought was to add an invisible actor on the sides of the platforms to kill the player, but that seemed inefficient . Just wandering if there is a better way to go about this. TIA

Comments

  • UnicornInvasionUnicornInvasion Member Posts: 301
    I think I would use the invisible brick but not sure about you.
  • fzeedfzeed Member Posts: 247
    Could you have an atrib for if the hero dies
    then in the platform section if collide with hero and use math?
    i Did something similar where if you touch the enemy you die, but, if your Y is higher then the enemy, he dies (so if you jump on him he dies) so if hero Y>enemy Y set the attrib hero_die to true.
    So could u say under the platform rules--if heroX = or < platformX then he shall die!
    IDK, i'm on alot of medication, flipping so sick uggggg....i think im missing something...
  • GLGAMESGLGAMES SingaporeMember Posts: 988
    @fzeed yes something like that, create some offset of the platform image so when you actor collides or in a way enters those y values it dies.
Sign In or Register to comment.