- Home /
2D Character Sprite in Corner
Hey Guys,
so I am developing a game in which you control a slime blob to move around in a 2D environment. It can dash to the direction of the mouse by clicking and sticks to walls (used the contactpoint normal for this).
But I don't know how to solve the issue of corners as seen in the video. Furthermore when on this free tilted wall the player can click behind it causing the character to flip into the wall. I thought of implementing an area of sight that is the only clickable thing. But I dont really know how to implement this.
Maybe you can help me
SirSmileX
Answer by SirSmileX · Jun 24, 2018 at 10:57 AM
Maybe someone knows why my character does not always go through the mouse pointer while dashing. Can add Code later but basically I am turning the sprite towards the mouse position and then adding an up force
Answer by Pnvanol · Jun 24, 2018 at 11:58 AM
Try to remove the option for the player to click on corners?