When are sprites needed?

Hi all, 

I’ve been trying for a long time to figure out how to use corona sdk, I have no coding experience. I paid for a few courses on udemy. Now I’m trying to figure out how to use sprites, the examples provided on texture packer were not very helpful, to me.

I’m just wondering if I actually need a sprite sheet, my game is very simple just a ball rolling around sometimes hitting and bouncing off a wall no animation.  Maybe one moving piece, something going up and down not real animation.

I’m really stressed, some help please.

No you don’t need to use sprites unless you want an animation.

Don’t be stressed out.  What’s the rush?   

Learn at whatever pace works for you.  You don’t even need to make a game.  Just make toys, mechanics explorations, and prototypes.

That.  100%
I’ve been using Corona since 2011 and released my first (and only) game to the app store in early 2012.  Since then I’ve just played.  I have sooo many unfinished projects but I just love messing around nd creating stuff.   Now that HTML5 builds are a thing I’m gonna (maybe) get round to putting some of these experiments up on my website for people to play with.

sprites are basically used for 2d animations they are basically a series of pictures when put together form an animation,like take a look at this sprite a series of instance of pictures will create the animation for the object,

if you save this image https://ibb.co/nEosYy as “temp.png” in your project and run the code in simulator you should see the animation.

and I guess the code is quite self explanatory if you play with the code you should get the idea and in case you have a problem or would like me to go through the code feel free to write I would be happy to help.And don’t be stressed out its ok if things don’t work out because those problems are to make you stronger and better.

local widget = require("widget") local sheetOptions = { width = 136, height = 132, numFrames = 8, } local imagesheet = graphics.newImageSheet("temp.png",sheetOptions) local SequenceData = { { name="Right", frames={1,2,3,4}, time=400, loopcount=0, loopDirection="forward" }, { name="Left", frames={8,7,6,5}, time=400, loopcount=0, loopDirection="forward" }, } sprite = display.newSprite(imagesheet,SequenceData) sprite.x,sprite.y=100,100 sprite:play()

Thank you all for quick response, I really did’t like the texture packer very glad I don’t have to use it.

Now I can breathe.  I’ll give a go to the link you left.

Thanks again.

For me Texture packer is obselete. Image sprite are for animation (5 images for example walking units) or to have in one image many of them. If you haven’t hundred or thousand don’t loose your time with that. Enjoy corona and have a good time

I use texture packer but only the sheet creation and the lua module. It’s so easy to implement, just call the sheet module, create the sequence, create the sprite… Play and pause.

I have not created a game yet but I love putting animations everywhere, buttons, words, really any object that I consider to be interactive in the user interface. Have fun!

No you don’t need to use sprites unless you want an animation.

Don’t be stressed out.  What’s the rush?   

Learn at whatever pace works for you.  You don’t even need to make a game.  Just make toys, mechanics explorations, and prototypes.

That.  100%
I’ve been using Corona since 2011 and released my first (and only) game to the app store in early 2012.  Since then I’ve just played.  I have sooo many unfinished projects but I just love messing around nd creating stuff.   Now that HTML5 builds are a thing I’m gonna (maybe) get round to putting some of these experiments up on my website for people to play with.

sprites are basically used for 2d animations they are basically a series of pictures when put together form an animation,like take a look at this sprite a series of instance of pictures will create the animation for the object,

if you save this image https://ibb.co/nEosYy as “temp.png” in your project and run the code in simulator you should see the animation.

and I guess the code is quite self explanatory if you play with the code you should get the idea and in case you have a problem or would like me to go through the code feel free to write I would be happy to help.And don’t be stressed out its ok if things don’t work out because those problems are to make you stronger and better.

local widget = require("widget") local sheetOptions = { width = 136, height = 132, numFrames = 8, } local imagesheet = graphics.newImageSheet("temp.png",sheetOptions) local SequenceData = { { name="Right", frames={1,2,3,4}, time=400, loopcount=0, loopDirection="forward" }, { name="Left", frames={8,7,6,5}, time=400, loopcount=0, loopDirection="forward" }, } sprite = display.newSprite(imagesheet,SequenceData) sprite.x,sprite.y=100,100 sprite:play()

Thank you all for quick response, I really did’t like the texture packer very glad I don’t have to use it.

Now I can breathe.  I’ll give a go to the link you left.

Thanks again.

For me Texture packer is obselete. Image sprite are for animation (5 images for example walking units) or to have in one image many of them. If you haven’t hundred or thousand don’t loose your time with that. Enjoy corona and have a good time

I use texture packer but only the sheet creation and the lua module. It’s so easy to implement, just call the sheet module, create the sequence, create the sprite… Play and pause.

I have not created a game yet but I love putting animations everywhere, buttons, words, really any object that I consider to be interactive in the user interface. Have fun!