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 / Atlas Image based Sprite not cycling through all frames?

Author
Message
DavidAGK
AGK Developer
10
Years of Service
User Offline
Joined: 1st Jan 2014
Location:
Posted: 21st Mar 2015 16:44
Hi,

I'm making animated sprites using an atlas image, subimages file and a deode file which states which of the subimages to use. I'm using the AddSpriteAnimationFrame command but when I play the sprite, it misses the last frame off? I've used the GetSpriteFrameCount command and the sprite does have the correct number of frames and I can, via the SetSpriteFrame command, force it to show the last frame. So it appears to be in there BUT when simply playing the sprite, the last frame is missing....

Any clues?

Using Tier 1 AppGameKit V2
Started coding with AMOS (Thanks Francois Lionet)
DavidAGK
AGK Developer
10
Years of Service
User Offline
Joined: 1st Jan 2014
Location:
Posted: 21st Mar 2015 16:52
Sorry - dumbo maths..... range to play is not lastframe - firstframe !!!

Using Tier 1 AppGameKit V2
Started coding with AMOS (Thanks Francois Lionet)

Login to post a reply

Server time is: 2024-11-25 18:41:29
Your offset time is: 2024-11-25 18:41:29