[RESOLVED] Character stops moving after collision of collecting an item.

I am working on this game where you are supposed to catch a certain colored ball. If you catch the wrong color then the game is over. However, when the character catches the right color, the ball disappears but my character is unable to move up and down and just falls to the bottom of the screen. Can someone please help with a generic code to allow my player to continue moving after collision with the correct ball?

Thank you! [import]uid: 212251 topic_id: 35762 reply_id: 335762[/import]

is your character physics body listed as isSensor? [import]uid: 18783 topic_id: 35762 reply_id: 142267[/import]

It is not. So how would that look? physics.addBody(ball, “isSensor”) [import]uid: 212251 topic_id: 35762 reply_id: 142315[/import]

You can do it when add the body

physics.addBody(ball, {isSensor = true})  

or later,

[code]
physics.addBody(ball, {})

ball.isSensor = true
[/code] [import]uid: 110228 topic_id: 35762 reply_id: 142319[/import]

working perfectly! thank you so very much [import]uid: 212251 topic_id: 35762 reply_id: 142321[/import]

is your character physics body listed as isSensor? [import]uid: 18783 topic_id: 35762 reply_id: 142267[/import]

It is not. So how would that look? physics.addBody(ball, “isSensor”) [import]uid: 212251 topic_id: 35762 reply_id: 142315[/import]

You can do it when add the body

physics.addBody(ball, {isSensor = true})  

or later,

[code]
physics.addBody(ball, {})

ball.isSensor = true
[/code] [import]uid: 110228 topic_id: 35762 reply_id: 142319[/import]

working perfectly! thank you so very much [import]uid: 212251 topic_id: 35762 reply_id: 142321[/import]