Are you trying to make the ball bounce off the ground or simply not be able to go through it? If you don’t want it to go through you could code it so that the ball can’t go above y = 460, or the like.
I’m creating a game based off your accelerometer tutorial and I was experimenting with a mountain like floor but before setting up the polygons I noticed the ball would just go right through if tilt far enough.
Im trying to make the ball simply not go through, I’ll play around with the code see if I can get it to work
Thanks again Peach [import]uid: 41389 topic_id: 19722 reply_id: 76340[/import]
Take a look and let me know - there may also be better ways to move the ball to avoid this, although I’m not certain on the exact code off hand without digging through my own tutes
Something applying impulse rather than adjusting gravity (as I think my example does?) may be best.
You could also look at the D pad tutorial to try and combine the two, that controls movement differently but would work with the accelerometer with a little tweaking.