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:1839 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
相关文章
bullet movement
this is my code .. I'm not very handy .. I'm trying to learn! I can not seem to occur in the collision between the enemy and the
quick syntax question
testing line numbers
Memory Usage question (detecting leaks)
ads
Field of View / Shadow Casting Demo
Landscape working in simulator but not device
Space Lander Updated!! BIG UPDATE
SpriteLoq License Key
this is my code .. I'm not very handy .. I'm trying to learn! I can not seem to occur in the collision between the enemy and the
quick syntax question
testing line numbers
Memory Usage question (detecting leaks)
ads
Field of View / Shadow Casting Demo
Landscape working in simulator but not device
Space Lander Updated!! BIG UPDATE
SpriteLoq License Key
corona forums © 2003-2011