How do i remove an object when it collides with something and the force of the collision is too high, so an example would be like angry birds when the bird hits the box to hard, it gets destroyed. I already tried if (event.force > 3) then removeSelf(). Thank you for any comments.
Label: corona android iphone ipad building error inmobi problem display screen View image tableView failed object physics touch button game lua config event listener |
Remove when collision is too high
Check out Ghosts VS Monsters sample code :)
What's the problem you are facing with if event.force > 3 then ?
Peach :)
well it doesn't exactly work every time, sometimes it works sometimes it doesn't and it usually won't work when the side of the ship collides with something at a certain force.
Are you printing the force to ensure it's not working and the force isn't actually just < 3 ?
Try printing force on each collision to troubleshoot, depending on your setup perhaps 3 is too high.
Peach :)
views:1868 update:2012/1/3 13:02:13
热门文章
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
相关文章
Help with touch event
Inaccuracy when moving game group based on a physics objects movement.
event order - is it possible to get the targeted event first?
graphics.clear
when will movieclip support retina ?
How do you close a WebPopup without the Back Button
Move another object after the first one is done transitioning or is collided
Studio looking for developer!
Trigger button actions without touch event?
iPad Only Config.lua Question
Inaccuracy when moving game group based on a physics objects movement.
event order - is it possible to get the targeted event first?
graphics.clear
when will movieclip support retina ?
How do you close a WebPopup without the Back Button
Move another object after the first one is done transitioning or is collided
Studio looking for developer!
Trigger button actions without touch event?
iPad Only Config.lua Question
corona forums © 2003-2011