I’m trying to do something that should be simple enough, but alas my action script skills are not up to par.
I have a character with a grease gun. He is shooting at other characters behind a wall as they bob up and down. The character with the grease gun moves left to right on the _x axis as the mouse moves left or right. When I click the mouse button he fires the grease gun. So far, all of this works.
What I can’t figure out is how to get the grease to ‘arc’, as if responding to gravity. I’ve tried lots of different things, and all the examples I find require the gun to rotate as the mouse moves up and down. I don’t need to do that. I aimply need my character move left to right (he’s holding the gun), fire the grease, and depending how high the aim, the grease will arc, or shoot straight.
If anyone can help me I promise to pay it forward.
Frustrated in Seattle