Moving Issues

Stryfe01Stryfe01 Member Posts: 146
edited November -1 in Working with GS (Mac)
Hi guys. I'm having some issues with movement.

Problem #1: When my actor jumps, i am animating it after it receives an event from the keyboard (spacebar is down). But the animation stops and stays on the last frame when I depress the keyboard.

Problem #2: When my actor runs left, I have the same issue. But I also run into that he just floats on by after i let go of the right arrow key. I am using accelerate. should I be using move instead?

Comments

  • RHRH Member Posts: 1,079
    Problem #1: have you got 'restore actor image when done' unchecked on the animation behaviour?

    Problem #2: On the actor create a rule that when the left key is released, change attribute self.motion.X to 0.

    Now for my problem:

    Where on earth do you find the '#' button on a macbook pro keyboard?? I've used Mac's for ages but it's always puzzled me :?
  • Stryfe01Stryfe01 Member Posts: 146
    #1, no it is set to restore the actor image.
    #2, sorry new to Mac myself. I am using an imac and it's above the number 3 key. Have you tried using the function key and number 3? just a shot in the dark...

    Thank for the tip. I'll give it a shot.
  • Stryfe01Stryfe01 Member Posts: 146
    RH, thanks for that. I tried 0, but it kept placing me tall the way to the left of the level when i released the right arrow key. The fix was to set the self position to self position, so that the actor doesn't lose his forward progress.
  • quantumsheepquantumsheep Member Posts: 8,188
    # is alt + 3 :D

    Dr. Sam Beckett never returned home...
    Twitter: https://twitter.com/Quantum_Sheep
    Web: https://quantumsheep.itch.io

  • RHRH Member Posts: 1,079
    :)

    Now to make up for all the times that I have had to search for one to copy and paste!

    However:

    @Stryfe01 if #2 doesn't work. It should.

    http://img42.imageshack.us/i/screenshot20100510at232j.png/

    There is an image of what is happening on my actor when the left key is pressed.

    ########################
Sign In or Register to comment.