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 / [SOLVED] Are single-image sprite sheets possible?

Author
Message
Brian Lancaster
10
Years of Service
User Offline
Joined: 20th Dec 2013
Location: Oakland, CA
Posted: 20th Jan 2020 23:55
I'm wondering if I can use sprite sheets in a single PNG image. In DarkBASIC I was used to chopping up BMP images with the Scroll Object Texture command for fire effects, etc.

To make sprite animations in AppGameKit, do I have to have a completely separate image for each frame?

The author of this post has marked a post as an answer.

Go to answer

blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Brian Lancaster
10
Years of Service
User Offline
Joined: 20th Dec 2013
Location: Oakland, CA
Posted: 21st Jan 2020 02:02
Thank you.
Brian Lancaster
10
Years of Service
User Offline
Joined: 20th Dec 2013
Location: Oakland, CA
Posted: 21st Jan 2020 02:18
One more thing maybe you can help me with if you have time. I don't understand the iFrameCount parameter. Shouldn't the frame count just be width x height? Is it to just cut off parts at the end?

SetSpriteAnimation( iSpriteIndex, iFrameWidth, iFrameHeight, iFrameCount )
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 21st Jan 2020 02:45 Edited at: 21st Jan 2020 02:45
Yes, Say you have 7 frames and you only want to use 6
Brian Lancaster
10
Years of Service
User Offline
Joined: 20th Dec 2013
Location: Oakland, CA
Posted: 21st Jan 2020 03:02
Perfect. Thanks again. You saved me a lot of experimentation time.

Login to post a reply

Server time is: 2024-04-19 05:54:14
Your offset time is: 2024-04-19 05:54:14