Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - nelsonn

Pages: 1 [2]
Playmaker Help / Simple movement on one axis - how?[SOLVED]
« on: October 02, 2013, 10:42:56 AM »
Hi everyone,

I just recently started using PlayMaker after doing a lot with Unreal Kismet so it's completely foreign to me.

Now, I'd like to control a cube on screen, just simple movement from left to right and right to left. The player presses 'A' the cube moves left, the player presses 'd' the cube moves right. When the player releases the key the cube stops in its current position.

Using 'AddForce' I managed to make the cube jump in a direction once or (when 'Every Frame' is ticked) just continue endlessly. However, I'm kind of stuck with the rest. I can't seem to get the key release to work properly.

I use 'Get Key Down' to register the input, go to a new state that tells the cube to move but in order to register more keys, I go the previous state using 'Finished' - which is when the cube stops moving whether I have released the key or not...

Any help would be appreciated!
Thanks a lot!  :)

Pages: 1 [2]