Loop issues.
Posted: Fri Jul 01, 2011 12:56 pm
Hi guys,
I have declared a global variable called m0nst3rAnimPos, and initiated it to 0 in the actors create event.
I have then put the following script in the actors draw event script.
if (m0nst3rAnimPos == 0)
{
m0nst3rAnimPos = 1;
playerOverlay.animpos = 0;
}
if (m0nst3rAnimPos == 1)
{
m0nst3rAnimPos = 0;
playerOverlay.animpos = 8;
}
Essentially, I am alternating a frame every loop to prototype an idle animation. However, it seems to get stuck on frame 8.
This seems like it should be really simple. Any ideas?
I have declared a global variable called m0nst3rAnimPos, and initiated it to 0 in the actors create event.
I have then put the following script in the actors draw event script.
if (m0nst3rAnimPos == 0)
{
m0nst3rAnimPos = 1;
playerOverlay.animpos = 0;
}
if (m0nst3rAnimPos == 1)
{
m0nst3rAnimPos = 0;
playerOverlay.animpos = 8;
}
Essentially, I am alternating a frame every loop to prototype an idle animation. However, it seems to get stuck on frame 8.
This seems like it should be really simple. Any ideas?