Professional Documents
Culture Documents
1/21/14 6:27 PM
Code'n'Web
TexturePacker
PhysicsEditor
Movie
Book
ShowRoom
Blog
Store
Search
To place a file create a new image Object with newImage, using the image sheet loaded before. You can select individual sprites by their name using getFrameIndex:
local myImage1 = display.newImage( myImageSheet , sheetInfo:getFrameIndex("drink")) local myImage2 = display.newImage( myImageSheet , sheetInfo:getFrameIndex("hamburger"))
http://www.codeandweb.com/blog/2012/05/09/texturepacker-corona-imagesheet-tutorial
Page 1 of 3
1/21/14 6:27 PM
Share
Login
10 months ago
2 years ago
I have just purchased this and tried to use with corona sdk. I am using dynamic content scaling and everything looks good on the iPhone but if I go up to the iPad nothing lines up. I think that it's using the iPad size image but still trying to use the iPhone size data file. Is there a way in texture packer to make sure the image I export at standard size, 2x and 4x are all the same just scaled up so that the data will line up perfectly with the standard size datafile.
2
! Reply ! Share
IntenseMediaDotCom
3 months ago
what does "21 not fitting sprites - try multipacking, Size: 2048x2048 (16384kB)" refer to? I can assure you I don't have any images that size. However I have over 48 image backgrounds that are 1024 x 768. What do I do with those larger files? Do I create a background only image folder?
! Reply ! Share
IntenseMediaDotCom
3 months ago
I use a lot of full size images in my apps: photos, background scenes that change from one page to another. Is there a way to use TexturePacker with these larger files? Is there any way I can optimize my graphics more efficiently using TexturePacker?
! Reply ! Share
eik
11 months ago
local myImage2 = display.newImage( myImageSheet , sheetInfo:getFrameIndex("hamburger")) On the 3rd parameter there, looks confusing so I just use my own sequencing information. I can't find any examples on the usefulness of 'sheetInfo:getFrameIndex("hamburger")?'
! Reply ! Share
sathya
a year ago
AndreasLoew
Mod
sathya
a year ago
how to solve the different size image problem for different size in corona sdk
! Reply ! Share
ALSO ON CODEANDWEB
WHAT'S THIS?
http://www.codeandweb.com/blog/2012/05/09/texturepacker-corona-imagesheet-tutorial
1/21/14 6:27 PM
How to scale content for Retina Display iPhone and iPad for cocos2d
6 comments a year ago
iphone 5 ???
wonderful! The explanation was straight-forward, and the funky graphics appealed to my visual learning side.
Subscribe
Join
Imprint
Lost license
Support
Privacy Policy
http://www.codeandweb.com/blog/2012/05/09/texturepacker-corona-imagesheet-tutorial
Page 3 of 3