Is there an easier way to do this without adding more confusing variables every time a sprite starts/stops it's animation? I'm making some like a poor-man's Baldur's Gate and I want the SPACE bar to pause/unpause the screen. But I get the error when I use the resumeSprite() command because I never used stopSprite() with some of them. I could do it with variables, but I really don't wanna make the source code any more complex.
I want a command like getSpriteStopped() or something. Is there something stupid I'm overlooking?
Thanks.
`Pause the game with SPACE.
if getRawKeyPressed(32)=1
if paused=1
paused = 0
for i = 10001 to 10001+numObj
if getSpriteExists(i)=1
if getSpriteFrameCount(i)>1 then resumeSprite(i)
endif
next i
else
paused = 1
for i = 10001 to 10001+numObj
if getSpriteExists(i)=1
if getSpriteFrameCount(i)>1 and getSpritePlaying(i)>0
stopSprite(i)
endif
endif
next i
endif
drawSelect()
endif