|
| 07 Oct 2015 07:11 PM |
Can anyone help with this?
function OnKeyDown (Key) if key = q then -- Projectile Script here elseif key = w then -- ability 1 elseif key = e then -- ability 2 elseif key = r then -- ability 3
I am trying to create a projectile, that will fly at a 90 degree angle (straight line) for my top-down MOBA game. The goal is (I already have click-to-move movement) to be able to move the mouse around the screen, and when I press 'q,' a projectile is fired that won't hit the ground because my mouse is pointing at the ground. So you see, the mouse allows for aiming. but it also shoots into the ground, anyone know how to help with this? |
|
|
| Report Abuse |
|