Shoot at mouse cursor
i want my player to shoot to where my mouse cursor is. its a 2D game and i already have a weapon but it only puts mines in the ground and when the enemy passes on top of it the enemy dies. i still dont know how to put a second weapon to shoot in the same game. for example i have the weapon that is already in the game to shoot when you press the mouse-left buttom and i whant the new weapon to shoot when you press the right-mouse buttom and i dont know how
the second weapon i want it to be able to shoot some walls and break them but i cant make the weapon to be attached to the player so when i move my player in the game the weapon does not move it just stays where the player spawns
can someone help me with these problems
Comment