AppGameKit Classic

AppGameKit Classic

Loading a .gif file for a sprite value
Hello,
Im trying to load a .gif file onto my platforming game to replace just a single image as a sprite.
I tried one way of loading several images that makes it look like a moving animating, but does anyone know an easier way to do this? thank you
< >
Showing 1-4 of 4 comments
steve Mar 28, 2017 @ 12:46pm 
You can't use Gif images in AGK.

The correct way is to make a sprite sheet, usually in Png format. This is all of your animation frames in one image, usually in a grid or strip of images. After CreateSprite(), you then SetSpriteAnimation() to set the frames, and PlaySprite() to animate it. There are other commands such as SetSpriteSpeed() to finetune it.
Last edited by steve; Mar 28, 2017 @ 12:47pm
GunnerJnr Mar 28, 2017 @ 1:03pm 
See the official docs[www.appgamekit.com] on it and a great in depth example here:

Animating Sprites - Part One[www.appgamekit.com]

Animating Sprites - Part Two[www.appgamekit.com]

Kind Regards
Last edited by GunnerJnr; Mar 28, 2017 @ 1:05pm
Thank you both!
GunnerJnr Mar 28, 2017 @ 1:10pm 
No probs dude! Good Luck, don't forget to sign up at the official forums[forum.thegamecreators.com] for tons more help from a great community and also it would be good to see your WIP's in the works in progress section :)
< >
Showing 1-4 of 4 comments
Per page: 1530 50

Date Posted: Mar 28, 2017 @ 12:35pm
Posts: 4