Well nope, thats not working either with the on animation idle02 finished --> set animation to idle.
Not only that, but now that I have set a random(4,8) timer, once I press a key and get a different keyboard input than 5, and hold it for the longest amount from the random number, in this case more than 8, and I let go, the idle02 frame pops in instantly (just for 1 frame) instead of starting to wait random(4,8) on letting go of any key and leaving input keyboard 5.
Here is the capx:
As of now, the animation idle02 is played without pressing anything between random(a,b) in my example random(4,8), but just its first frame.
And like I wrote in the previous paragraph, once a key is kept pressed beyond the max number in the random timer, the animation idle02 pops for 1 frame instantly, and doesnt wait the 4-8 seconds.
So this is broken in two places...
To illustrate what I would like:
No buttons pressed - playing animation idle -> just 1 static frame
-----------> while animation idle is playing, every random(a,b) seconds play idle02 once, untill animation idle02 is finished,
-----------> animation idle02 finished, go back to play animiation idle, to finish off the loop
If either animation idle or animation idle02 is being played, on any key press switch to animation according to that key.
If after any amount of time that key that was just pressed is let go (can be after 4 seconds or after 1 minute etc.), go back and play idle animation, and go back to wait random(a,b) to play animation idle02, and the loop above.