I am using transition.to to move objects, but the problem is that I don't know how to get another object to start transitioning after the first object either finishes moving or is collided with. Can anyone help me?
Label: corona android iphone ipad building error inmobi problem display screen View image tableView failed object physics touch button game lua config event listener |
Move another object after the first one is done transitioning or is collided
can you explain more your problem...what do you want to do when you move the first object?
If it's collision you'd use a collision listener, if it's on complete then it would be like this;
1 2 3 4 5 | local function trans1 () transition.to(obj2, {time=1000, x=100}) end transition.to(obj1, {time=1000, y=100, onComplete=trans1}) |
views:1834 update:2012/2/8 8:46:10
热门文章
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
相关文章
Device Screen Orientation Issue
Help with Children's Coloring Book App
Flame Creator
Anyone on Twitter?
Facebook: Wall Posts and Facebook Platform Policies: be careful
Apple Rejecting Apps with OpenFeint
Two physics questions: Pausing and multiple sources.
Extremely urgent unicode issue
How to calibrate accelerometer?
Creating a water surface appearance. Side on, not a texture.
Help with Children's Coloring Book App
Flame Creator
Anyone on Twitter?
Facebook: Wall Posts and Facebook Platform Policies: be careful
Apple Rejecting Apps with OpenFeint
Two physics questions: Pausing and multiple sources.
Extremely urgent unicode issue
How to calibrate accelerometer?
Creating a water surface appearance. Side on, not a texture.
corona forums © 2003-2011