Support for animated gifs?

Hello.

I saw a similiar post asking how to load in animated gifs as background and foreground objects. someone said something about using sprites, but it was a short post…anyway,

Is there direct support for loading animated gifs yet or do i have to use sprites?

Im still learning, so sprites would be new to me, using Lua…

Thanks for any help. [import]uid: 157993 topic_id: 30110 reply_id: 330110[/import]

Pretty sure animated gifs aren’t supported (except a webview) but i really advise you to get to grips with sprites - it’s nice and easy to have different animation sequences in one sprite sheet but you’d need multiple gifs to achieve the same result. Just one of several reasons why 2d games are primarily based around sprites.

Take a look at the API docs, check out the sample code and ask questions here, I know sprites can seem daunting at first but the effort is definitely worth it. [import]uid: 33275 topic_id: 30110 reply_id: 120549[/import]

SegaBoy is correct, no gifs - and as he says sprites might seem daunting at first but it is definitely worth your time to get to grips with them. [import]uid: 52491 topic_id: 30110 reply_id: 120569[/import]

Thanks for the posts yall. i did get my sprite sheet going but i do have a question about one thing. Is there a way to change the size of the individual frames on a sprite sheet using Lua?

For example, i know you can size images…so was wondering if i can do the same with my sprite sheet.

Thank you! :smiley: [import]uid: 157993 topic_id: 30110 reply_id: 120576[/import]

Do you mean, changing their size after placing them? If so, you can scale them up or down (see the docs for the scale functions). But honestly, you should probably design the sprite frames to be the size you need. Scaling up can, of course, result in some blurry or weird looking images. And scaling down can result in some jagged edges.

Brent [import]uid: 9747 topic_id: 30110 reply_id: 120619[/import]

i drop a gif in texturepacker and it automatically creates a sprite for me :smiley: [import]uid: 98393 topic_id: 30110 reply_id: 120850[/import]

Ya I tried that texturepacker software too. it seems a bit limited but it made a spritesheet for me. I might buy it, seems like a good tool to have^^ [import]uid: 157993 topic_id: 30110 reply_id: 120883[/import]

Pretty sure animated gifs aren’t supported (except a webview) but i really advise you to get to grips with sprites - it’s nice and easy to have different animation sequences in one sprite sheet but you’d need multiple gifs to achieve the same result. Just one of several reasons why 2d games are primarily based around sprites.

Take a look at the API docs, check out the sample code and ask questions here, I know sprites can seem daunting at first but the effort is definitely worth it. [import]uid: 33275 topic_id: 30110 reply_id: 120549[/import]

SegaBoy is correct, no gifs - and as he says sprites might seem daunting at first but it is definitely worth your time to get to grips with them. [import]uid: 52491 topic_id: 30110 reply_id: 120569[/import]

Thanks for the posts yall. i did get my sprite sheet going but i do have a question about one thing. Is there a way to change the size of the individual frames on a sprite sheet using Lua?

For example, i know you can size images…so was wondering if i can do the same with my sprite sheet.

Thank you! :smiley: [import]uid: 157993 topic_id: 30110 reply_id: 120576[/import]

Do you mean, changing their size after placing them? If so, you can scale them up or down (see the docs for the scale functions). But honestly, you should probably design the sprite frames to be the size you need. Scaling up can, of course, result in some blurry or weird looking images. And scaling down can result in some jagged edges.

Brent [import]uid: 9747 topic_id: 30110 reply_id: 120619[/import]

i drop a gif in texturepacker and it automatically creates a sprite for me :smiley: [import]uid: 98393 topic_id: 30110 reply_id: 120850[/import]

Ya I tried that texturepacker software too. it seems a bit limited but it made a spritesheet for me. I might buy it, seems like a good tool to have^^ [import]uid: 157993 topic_id: 30110 reply_id: 120883[/import]