Different movement/rotation depending on how long a key is pushed

billpaternobillpaterno Member Posts: 26
edited November -1 in Working with GS (Mac)
I am working on a simple test where you alternate pushing the left and right buttons to go in a straight direction (kind of like paddling). I want very little rotation when the alternating pattern is being executed but I want the ability to rotate quickl (but slow down the actual acceleration ie rotate in place) when either key is held down.

I am a complete GS noob...just started today. Right now, I basically have a Rule for each left and right key press that has an Accelerate and Rotate behavior. I tried to play around with a timer but it wasn't working properly.

Any help would be appreciated!

Thanks,
billpa

Comments

  • firemaplegamesfiremaplegames Member Posts: 3,211
    You can try putting the accelerate behavior in a timer.

    Set the timer like this:

    FOR (a very short amount of time, like 0.08)
    Accelerate

    That will give it a little "burst" effect, like a thrust.
    That might do the trick.
  • billpaternobillpaterno Member Posts: 26
    I tried that out and it didn't work how I wanted it to. I then changed it to every with a short amount of time and it worked perfect!

    Thanks for pointing me in the right direction!
  • billpaternobillpaterno Member Posts: 26
    er...meant to say I changed it to AFTER.
Sign In or Register to comment.