Bug help in my game! Please help
TannerWord
Member, PRO Posts: 20
in Tech Support
Im making a brick breaker game, Ive been done with it for a while except for one little bug....the ball hits two bricks at one time which causes the count to get off and so the game doesn't end when all the brick are gone because it counted the two bricks it hit at once as one brick, so it still thinks another brick needs to be destroyed before ending the game. How can I fix this?? Either make it where only one brick can be destroyed at once or when it does destroy two at the same time it doesn't mess the count up when subtracting the bricks from the game, so it will end the game when the bricks are gone, how can I fix this??? Please help!
Comments
Can I take a look at it?
Please refrain from posting the same questions in multiple forums (especially when both forums aren't the right place for it :P)
That said, I'm assuming you have the rule to count bricks in your ball? If so, put it in your bricks instead.
When actor receives event overlaps or collides with actor Ball
Change attribute game.Bricks to game.Bricks-1
Or something like that.
If you are using the brick actors to subtract the one from the total when a brick is hit, and not using the ball actor, then you'll need to post your rules so we have some idea of what you're actually doing.
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support
Never mind, then
I would also like the ball to move in the direction base on which way Im moving my paddle when the ball hits it, instead of it just being random....thanks for all you guys' help!
Having looked at the rules it appears to be a simple case of one actor being accidentally unlocked before the rule to subtract from the bricks total was added!
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support
here you go