Hello Everyone!
I’m creating an arcade game where you are a ball that is bouncing around a contained area the size of an iphone screen. Every 5 seconds or so a column of coins appears and then disappears after 5 seconds. The location of the coins that appear depends on a randomly generated number, 1 through 8. The amount of points each coin is worth starts at 10 and every 5 coins the player collects their worth increases by 10 (10, 20, 30, 40, etc).
The problem I’m having is that when the ball passes through a coin the coin does not consistently disappear (as it should after being collected). The amount of points given by the coins is correct when a coin does disappear however.
If anyone could help me out by showing me a good way of collecting coins I would greatly appreciate it. I would post some of my code, but it’s so convoluted that it probably wouldn’t be much help.
Note: I don’t want the ball to change direction or momentum at all when it passes through a coin, I want it to continue moving like nothing happened.
Thanks in advance! [import]uid: 144843 topic_id: 28484 reply_id: 328484[/import]
[import]uid: 52491 topic_id: 28484 reply_id: 133102[/import]