Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

When are sprites needed?
Started by DLuck May 15 2018 09:19 PM

6 replies to this topic

Best Answer roaminggamer , 15 May 2018 - 09:20 PM

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.

[TOPIC CONTROLS]
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

DLuck

[GLOBAL: userInfoPane.html]
DLuck
  • Enthusiast

  • 62 posts
  • Corona SDK

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.

 



[TOPIC: post.html]
#2

roaminggamer

[GLOBAL: userInfoPane.html]
roaminggamer
  • Corona Geek

  • 7,291 posts
  • Corona SDK

  Best Answer

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.



[TOPIC: post.html]
#3

Appletreeman

[GLOBAL: userInfoPane.html]
Appletreeman
  • Contributor

  • 401 posts
  • Corona SDK


 

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.



[TOPIC: post.html]
#4

maheshmn121

[GLOBAL: userInfoPane.html]
maheshmn121
  • Observer

  • 12 posts
  • Corona SDK

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()


[TOPIC: post.html]
#5

DLuck

[GLOBAL: userInfoPane.html]
DLuck
  • Enthusiast

  • 62 posts
  • Corona SDK

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.



[TOPIC: post.html]
#6

remiduchalard

[GLOBAL: userInfoPane.html]
remiduchalard
  • Contributor

  • 305 posts
  • Corona SDK

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

Attached Files



[TOPIC: post.html]
#7

dodi_games

[GLOBAL: userInfoPane.html]
dodi_games
  • Contributor

  • 317 posts
  • Corona SDK

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!


[topic_controls]
[/topic_controls]