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] Animated Sprite - Offset

Author
Message
Rocco Sette
6
Years of Service
User Offline
Joined: 2nd Aug 2017
Location:
Posted: 24th Sep 2017 21:38 Edited at: 24th Sep 2017 21:39
Hello !

I'm trying to play a sprites, this is the code :



But i need apply offset on this image, because the border is more larger than space between sprites. Someone can help ?

Thank's

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

Go to answer

hoyoyo80
7
Years of Service
User Offline
Joined: 11th May 2016
Location:
Posted: 25th Sep 2017 05:25
i think u can edit the spacing in image editor. Possible to attach the sprite?
Rocco Sette
6
Years of Service
User Offline
Joined: 2nd Aug 2017
Location:
Posted: 25th Sep 2017 06:01
I bought it on gamedevmarket so...

No other idea ?
Mobiius
Valued Member
21
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 25th Sep 2017 09:08
This post has been marked by the post author as the answer.
If you create a subimiges.txt file (Similar to the way bitmap fonts work) then I believe AppGameKit will automatically use that when loading your image. In the subimages file, you then specify the coordinates for each frame.
Click here for VR Legend of Zelda stuff
Rocco Sette
6
Years of Service
User Offline
Joined: 2nd Aug 2017
Location:
Posted: 25th Sep 2017 17:25
It works like a charm, thank's !

https://www.appgamekit.com/documentation/Reference/Image/LoadSubImage.htm
Mobiius
Valued Member
21
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 26th Sep 2017 09:59
Boom! Glad to help.
Click here for VR Legend of Zelda stuff

Login to post a reply

Server time is: 2024-04-19 11:12:59
Your offset time is: 2024-04-19 11:12:59