Hello,
I have the following bit of code in my main loop:
`check to see which animation should be playing
if inCombat = 1
Stop Object 3
Loop Object 3, 41, 53
endif
if inCombat = 0 AND walking = 1 then Loop Object 3, 1, 13
if inCombat = 0 AND walking = 0 AND walkBack = 0 then Loop Object 3, 326, 359
if inCombat = 0 AND walkBack = 1 then Loop Object 3, 1, 13
if inCombat = 0 AND walkBack = 0 AND walking = 0 then Loop Object 3, 326, 359
Sync
For some reason it will not play the combat animation, even though the idle and walking animations work fine. Currently, holding both mouse buttons moves the character forward, the down arrow moves him back, and if he single left clicks on the monster he should do his combat animation.
When I click on the monster it plays the attack sound, so I know it is executing the function that sets inCombat to 1 and the walking and walkBack variables to 0, but the animation simply will not play no matter what I do.
I'd be happy to post additional code if it is needed, and thanks in advance for any help!
-Matt