Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / StopSprite then PlaySprite losing settings

Author
Message
DavidAGK
AGK Developer
10
Years of Service
User Offline
Joined: 1st Jan 2014
Location:
Posted: 26th Mar 2014 10:42
Hi,

I've got a function that stops all tiles (sprites) in my map editor from animating using the StopSprite command (which I understand stops the sprite's animation whilst retaining the animation information) but on starting the animations again using PlaySprite it appears that they have lost their animation information. I'll take another look at my code but given how simple the task is, I'm wondering if any of you have experienced a bug in this area?

David
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 26th Mar 2014 11:01 Edited at: 26th Mar 2014 11:01
after Stop u can use ResumeSprite
http://www.appgamekit.com/documentation/Reference/Sprite.htm

AGK 108 (B)19 : Windows 8.1 Pro 64 Bit : AMD Radeon HD 6670
DavidAGK
AGK Developer
10
Years of Service
User Offline
Joined: 1st Jan 2014
Location:
Posted: 26th Mar 2014 13:26
Hey cheers Markus, I wasn't aware of that command. Having seen the PlaySprite I figured that was the command so didn't look further. You've probably saved me a bunch of time so thank you.

Login to post a reply

Server time is: 2024-05-05 07:09:05
Your offset time is: 2024-05-05 07:09:05