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 / No loop back and forth?

Author
Message
Digital Awakening
AGK Developer
21
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Sweden
Posted: 5th Sep 2013 13:06
I was thinking of animating the water in my new title screen. But I noticed that AppGameKit can only loop an animation forwards. What I want is to loop it back and forth. For example, if I have a 5 frame animation I want it to go 1,2,3,4,5,4,3,2,1,2,3,4,5... Am I the only one missing this?

Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 5th Sep 2013 13:18 Edited at: 5th Sep 2013 13:21
i believe you can exchange from and to
PlaySprite( iSpriteIndex, fFps, iLoop, iFromFrame, iToFrame )
GetSpriteCurrentFrame( iSpriteIndex )
SetSpriteFrame( iSpriteIndex, iFrame )

or add the backwards images with
AddSpriteAnimationFrame( iSpriteIndex, iImageIndex )

Login to post a reply

Server time is: 2024-05-09 11:29:15
Your offset time is: 2024-05-09 11:29:15