360 Degrees Shooting Issues
Hi,
I am having problems shooting in 360 degrees I have practically copied nirvam's 360 degree shooting example and my bullet keeps not firing. This really frustrates me because I know that it works, but it doesn't. Any ideas or ways I could fix my problem? I could post examples if needed.
-Thanks, Variant
Re: 360 Degrees Shooting Issues
Hi variant. Are you creating the bullet to be shot?
Marv
Re: 360 Degrees Shooting Issues
Yes. I could post an example of what is wrong if you would like me to. The events go as follows:
UPON PRESSING SPACEBAR
-Create OBJ relative to Shooter
-Set xpos to OBJ X Position
-Set ypos to OBJ Y Position
-Set xvel to (Sin(Shooter Angle))+180)
-Set yvel to (Cos(Shooter Angle))+180)
ALWAYS
-Add xvel to xpos
-Add yvel to ypos
-Set OBJ X Position to xpos
-Set OBJ Y Position to ypos
I don't quite know what's wrong with it, in theory it should work.
-Thanks, Variant