Actuator Action, Framestep on keypress....

I got troubles getting something to work. I know the example I use can be done with a move actuator, but, for the sake of the question lets go with this use case.

I got a cube, keyframed with a rotation at frame 0.
Lets say I turn it 180° and keyframe it again at frame 180.
Now i want to press the keys, let’s say n, m to rotate clock and counterclockwise.

Is there a way to play an action frame by frame when pressing the keys?

It’s also thinkable to have an object property, let’s say “rot” and inc/dec it when pressing a key.
Is there a way to set the action actuator to frame(rot)?

I also noticed that when I want to increment a property when keeping a key pressed seems to be an issue, I am missing some sort of a “tick” or “main loop iteration”. If I add +1 to a property it adds it alright, but only triggers on “key pressed” not on “key held”.

Thanks in advance :smiley:

The action actuator has a property mode.

This enables you to directly set the played frame. Just ensure you activate the actuator each time the property changes.

Hint: the property can be float - you do not need to set whole numbers.

Oh damn, I must’ve been blind not noticing this o.O
The question remains to me, how do I increment a property while the key is held, rather then when the key is pressed?

Oh… pulse mode… the 3 dots in case someone is wondering stumbling upon this via google search :smiley:

Here’s a ready to explore .blend if anyone else needs a solution to this.
http://www.pasteall.org/blend/34327

Scrub through the 30 frames action with “n”+“m”.
Limits set as well so the property is >0 and <30