How do I make so that a jpg with physics ignore the transparent bits of the groundimage which is static?
Label: corona android iphone ipad building error inmobi problem display screen View image tableView failed object physics touch button game lua config event listener |
Make images ignore transparent bits in png files?
You need to use the shape property when creating your physics body:
http://developer.anscamobile.com/content/game-edition-physics-bodies#Polygon_bodies
That way you can define the shape of the physics body to be something other than the bounds of the image.
Doesn't it exist a command for just the object to ignore the transparent parts?
Nope, not at this time, anyway. It may be possible to add in something like that (I think it exists in the AS3 implementation of Box2d), but I don't know if it's on the roadmap for Corona.
Found this: http://www.youtube.com/watch?v=oigdrgh286E
views:1642 update:2011/10/6 9:28:12
热门文章
GameCenter LeaderBoards and Achievements Enabled Through OpenFeint
send message and call to a person
Forum: Report Spam + PM
[INSTALL_PARSE_FAILED_NO_CERTIFICATES]
[SOLVED] Director ERROR: Failed to execute new( params ) function on 'screen1'
Too many (200) local variables
Corona SVG Level Builder released. Drag and drop physics level editor with Inkscape and SVG.
Small bug in Collectible Items example
Pivot Joints and apparent elasticity
Can't make removeSelf() delayed
send message and call to a person
Forum: Report Spam + PM
[INSTALL_PARSE_FAILED_NO_CERTIFICATES]
[SOLVED] Director ERROR: Failed to execute new( params ) function on 'screen1'
Too many (200) local variables
Corona SVG Level Builder released. Drag and drop physics level editor with Inkscape and SVG.
Small bug in Collectible Items example
Pivot Joints and apparent elasticity
Can't make removeSelf() delayed
相关文章
ndoo or nduoa
Adobe Recognizes Corona SDK as Mobile Gaming Technology
Clock. Display the 0 before single digits seconds and minutes
Rope performance on corona
More info about CoronaUI
How to Check Runtime Events
[Solved?] Got the valid product id, but purchase always fail
Particle Candy & Text Candy: Coupon Codes available
Porn apps
Check if has body
Adobe Recognizes Corona SDK as Mobile Gaming Technology
Clock. Display the 0 before single digits seconds and minutes
Rope performance on corona
More info about CoronaUI
How to Check Runtime Events
[Solved?] Got the valid product id, but purchase always fail
Particle Candy & Text Candy: Coupon Codes available
Porn apps
Check if has body
corona forums © 2003-2011