I have code for spawning an enemy then making the enemy run towards the player until he reaches him. However, I'm now trying to make en enemy that runs towards the player for a short distance, stop, then carry out another action. The only problem is I have no idea how to implement a delayed response in a method without interrupting the flow of the game. Ideally, the enemy would use the same method the chasing enemies do, then after a certain amount of time has passed, call a method that stops him. How can I implement this?
Label: corona android iphone ipad building error inmobi problem display screen View image tableView failed object physics touch button game lua config event listener |
热门文章
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
相关文章
Any Lua folks in the Phoenix area??
MovieClip / SpriteSheet (optimization)
Simulator Crashes - Unable to build
App doesn't look the same on all devices
Opinions on new look infuseddreams site
A valid provisioning profile for this executable was not found. Can't add built app to iPhone
Back and forth movement
Connection error: (corona.get)
Corona 2.0 Beta 4 now available for download
Orientation Requirements?
MovieClip / SpriteSheet (optimization)
Simulator Crashes - Unable to build
App doesn't look the same on all devices
Opinions on new look infuseddreams site
A valid provisioning profile for this executable was not found. Can't add built app to iPhone
Back and forth movement
Connection error: (corona.get)
Corona 2.0 Beta 4 now available for download
Orientation Requirements?
corona forums © 2003-2011