I'm working on my first game and I've ran across a problem that I'm not sure how to fix. In my game I use a joystick to move my character back and forth through my 2D environment. I was able to accomplish this with no problem. The problem I'm having is with my moving platforms that my character can jump on. When my platform reaches the top of its y movement and proceeds to go down the character jumps and rests slightly above the actual physical body. Making my character unable to jump because my jump is based on whether or not my character is standing on a surface that I allow a jump from. Then when the platform reaches the bottom of its motion and changes direction back upward the character gets pushed into the physical body and is able to jump again. Is there a way to keep to character in a sense glued to the platform and nullify the physics bodies from acting the way the currently are? I would greatly appreciate some feedback, thanks.
Label: corona android iphone ipad building error inmobi problem display screen View image tableView failed object physics touch button game lua config event listener |
Character and Platform Physics Question
This thread should help :)
https://developer.anscamobile.com/forum/2011/07/11/physics-and-moving-platforms
Peach
Thanks, moving the position with "setLinearVelocity" worked :)
Excellent! Good luck with your first game :)
Peach
views:1665 update:2011/11/14 9:16:56
热门文章
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
相关文章
Transition.to pause and resume
beebegames class problem in pause resume timer
Remove item from Launchpad analytics?
Smarter camera movement - any pros around?
Lander Hero - Looking for Beta Testers
iOS vs Android load times
Latest builds bugs
Code Completion with the Built-In editor
Any way to hide source code?
Finally ! Point Reduction Code ...
beebegames class problem in pause resume timer
Remove item from Launchpad analytics?
Smarter camera movement - any pros around?
Lander Hero - Looking for Beta Testers
iOS vs Android load times
Latest builds bugs
Code Completion with the Built-In editor
Any way to hide source code?
Finally ! Point Reduction Code ...
corona forums © 2003-2011