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:1835 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
相关文章
iPhone 4 sound issue
Including all subfolders (inclusive .svn) really sucks!
weird random simulator crashes with 2011.591 version
App of the Week - Free Reviews?
(superbluetooth hack mobile )Wifi hack mobile
Dynamic content scaling and screen size detection
Masking Movieclips
Can't use open for build since upgrading IOS SDK to 4.1
How to Reuse objects
Problems installing on android devices
Including all subfolders (inclusive .svn) really sucks!
weird random simulator crashes with 2011.591 version
App of the Week - Free Reviews?
(superbluetooth hack mobile )Wifi hack mobile
Dynamic content scaling and screen size detection
Masking Movieclips
Can't use open for build since upgrading IOS SDK to 4.1
How to Reuse objects
Problems installing on android devices
corona forums © 2003-2011