Dev Log #8
.
I new it was too good to be true, progress has slowed yet again. ):
.
Today I added:
‘Working’ collisions
While my collisions ‘work’, they only work when my player rectangle is unchanged.
.
The issue being when my gun rotates, its rectangle changes size.
.
This change of size is interpreted as a movement by my collision sytem, therefore once I come in contact with a tile, the bottom of the rectangle slowly becomes bigger and smaller.
.
this caused it to move to the tops of different tiles, eventually causing it to be flung out of the game window at rapid speed.
.
I plan to combat this issue with either of these methods:
.
OPTION A: Pixel perfect collision done through player masks.
.
This option is harder and can effect preformance if not implemented properly, but with give a smooth and finished collision effect
.
OPTION B: Set hitbox collision
.
This option creates a set region on the player, only that region (probably a rectangle shape to make collision detection easy) being able to collide with tiles.
.
This option will likely be easier, but will look less pollished as the gun barrel would not fall due to gravity, it would stay above the ground while the grip sits on the ground.
.
My goals for next dev-log are unclear, but for now I hope to have a working collision system at least!!!
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.