Error With Random Code

Get help using Construct 2

Post » Tue Jan 29, 2013 5:43 pm

Have a character that will be performing animations (attacks) at random.
Each animation is linked to a number in a global variable.
Once each animation is finished
"System - set"global variable" to floor(random(1, 7))

With this working, it should create an endless loop of the character pulling off animations without pause.

My problem is he is pausing randomly and I don't understand how/why.
Would it possibly be because of the line "floor(random(1, 7))"?
Are there better alternatives?
Or maybe at the core could my way of doing this be changed? (see image)

Thanks guys

Posts: 188
Reputation: 3,610

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 14 guests