How can I make a Jump look more clean in Windows version?

goddessarowyngoddessarowyn Member Posts: 8
edited September 2013 in Working with GS (Mac)
Ok, so I run the latest Windows version of GameSalad, and I have started working on a new platformer game where you play as one character. I have animated the character to run when a key is pressed, and so forth, and I have also added the jump attribute. However, when the character jumps in any direction aside straight up, the animation for the jump only lasts for a second, and then the character goes back to its running animation while it's still falling back towards the floor. I have been working for two days on trying to figure out how to make the jump look more clean like in Mario Bros. or Maplestory, but have been unsuccessful. I have watched several tutorials, Jamie-C's tutorial's are awesome, which is where I learned how to program the jump, but now I am faced with a totally new obstacle. Any suggestions or fixes for this is be greatly appreciated.

Comments

  • lebiscuitlebiscuit Member, PRO Posts: 220
    edited September 2013
    create a variable "onFloor"

    actor receives event collides with floor
    "onFloor" = true

    Otherwise
    "onFloor" = false



    then just make some other rule for you animation :
    if "onFloor" = false & attibute self.motion.linear.velocity > 0
    animation Jump

    if "onFloor" = false & attibute self.motion.linear.velocity < 0
    animation fall

    cheers
  • goddessarowyngoddessarowyn Member Posts: 8
    Do I create the boolean variable for the actor itself, or the floor?
  • -Timo--Timo- Member Posts: 2,313
    For the player of course ;) else it's if floor overlaps or collides with floor.
    And it is self.motion.linear .Y if you didnt nderstand that.:)
  • lebiscuitlebiscuit Member, PRO Posts: 220
    thx @timolapre1998 ,)

    yep boolean actor, but you can also put it on the main game also
    for more advance setup
  • goddessarowyngoddessarowyn Member Posts: 8
    perfect. Thank you! :)
Sign In or Register to comment.