Error With Random Code

Get help using Construct 2

Post » Tue Jan 29, 2013 5:43 pm

http://imageshack.us/photo/my-images/831/characterrandom.jpg/

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

B
15
S
5
G
2
Posts: 154
Reputation: 3,076

Return to How do I....?

Who is online

Users browsing this forum: LeFuji and 23 guests