Hello
I’ve searched the forums for answers to these questions but haven’t found anything - apologies if there’s something already out there.
I have 2 small problems I can’t figure out.
The first: I have created 4 boxes around the edge of the screen using display.newRect, to create a border/frame. I then added a ball to the centre using display.newCircle, radius 8. I have then turned on physics with gravity 9.8 and turned on the accelerometer.
When the ball hits the bottom box it bounces and stops - perfect. But when the ball touches the side boxes, it passes straight through, even if its travelling very, very slowly.
I tried adding another static box on the floor and this has the same problem, where the ball stops on the top, but passes through the sides.
Any ideas why this happens?
The second problem: I created an image in Photoshop, with a transparent background, 32x32px and I drew a triangular ramp shape inside this image, 32px wide by 16px high. When I add it to the Corona game shown above, the transparent boundary 32x32px is used rather than the shape inside, so the ball rests on top of the invisible box rather than sliding down the ramp.
Any idea how to ignore the background of the image?
Thanks in advance and sorry for the long post!
Steve
[import]uid: 45932 topic_id: 15531 reply_id: 315531[/import]


