trojectory
Member
Hey everyone,
I'm currently on some of the later stages of a personal project I'm working on - creating a variation of the Brick and Ball "Breakthrough" game. I have 95% of the core mechanics worked out with my sprites and collision masks, but am having some strange behaviour when the ball gets to the corner of these rectangle bricks. I've tried looking at possible solutions with the collision masks, and have debugged as much as I know how to, but the issue seems to be that the collision event between the ball and the brick is being triggered when it shouldn't.
Here's an example image.
The ball is moving in the direction of the red arrow, so you would think that the collision events would be triggered between the ball and the dark blue bricks, but for some reason (and only occasionally, if the ball hits the two dark blue brick perfectly in the corner) the collision event between the ball and the SKULL brick is triggered. I am lost as to where to look at why. Any ideas? Would more information help?
Here are a few more screenshots with more info.
Ball sprite
SKULL brick sprite
Code that is triggered when the ball and skull brick collision is detected. It shouldn't be anything in here, but thought I'd include it.
I'm pretty new to GM2. I do software development for work, but don't the large majority of the 'best practices' or useful functions in GM2. I appreciate anyone's suggestions on where to start looking.
I'm currently on some of the later stages of a personal project I'm working on - creating a variation of the Brick and Ball "Breakthrough" game. I have 95% of the core mechanics worked out with my sprites and collision masks, but am having some strange behaviour when the ball gets to the corner of these rectangle bricks. I've tried looking at possible solutions with the collision masks, and have debugged as much as I know how to, but the issue seems to be that the collision event between the ball and the brick is being triggered when it shouldn't.
Here's an example image.
The ball is moving in the direction of the red arrow, so you would think that the collision events would be triggered between the ball and the dark blue bricks, but for some reason (and only occasionally, if the ball hits the two dark blue brick perfectly in the corner) the collision event between the ball and the SKULL brick is triggered. I am lost as to where to look at why. Any ideas? Would more information help?
Here are a few more screenshots with more info.
Ball sprite
SKULL brick sprite
Code that is triggered when the ball and skull brick collision is detected. It shouldn't be anything in here, but thought I'd include it.
I'm pretty new to GM2. I do software development for work, but don't the large majority of the 'best practices' or useful functions in GM2. I appreciate anyone's suggestions on where to start looking.
Attachments
-
34 KB Views: 0