|
Well i made a Mario-esque game, where i can run, jump and shoot. Well the problem here is the shooting part. When i shoot, i either shoot forward, or out into 3D space. For the shooting script i got:
What i want to do is, have 'J' and 'L' be the direction i fire in, while 'K' is the fire button. This script only shoots with 'K' and that is, like i said, into 3D space. Any help would be appreciated.
(comments are locked)
|
|
It depends a bit on how your world is oriented along the axis, but basically change the Okay, without doing anything smart the code would end up something like:
(comments are locked)
|
|
That helps to shoot to the right. This still leaves shooting to the left not working. Could you please explain how to negate the power? Because simply making it less or even a negative, it just randomly sprays the bullets. add a minus sign before the word power :-)
Jan 31 '10 at 11:38 PM
Jaap Kreijkamp
The negative sign made it so they sprayed the right way, but the problem was my character was in between the spawn point, and where they wanted to go...so i simply made a 'Gun_Spawn1' on the opposite side. Thanks!
Feb 01 '10 at 12:05 AM
xToxicInferno
(comments are locked)
|
