View Full Version : aiming
svelic
05-21-2009, 08:36 PM
hey how do i aim a gun, bullet, and aiming reticule all with the mouse at the same time??
pingu
05-23-2009, 01:38 PM
hey how do i aim a gun, bullet, and aiming reticule all with the mouse at the same time??
I think you can use a "let mouse move object" event. I haven't tried it yet though.
ploply
06-16-2009, 03:17 PM
I set one of my events as 'When mouse is clicked on something' to run my shooting method but my one issue is that the ball doesn't go in the direction I want it to. Also set the barrel of the gun as the vehicle to the sphere and put the sphere in the barrel.
ttkrakus
06-16-2009, 11:25 PM
I set one of my events as 'When mouse is clicked on something' to run my shooting method but my one issue is that the ball doesn't go in the direction I want it to. Also set the barrel of the gun as the vehicle to the sphere and put the sphere in the barrel.
Here is a thought:
Did you check the orientation of the ball?
If the orientation of the gun is such that the barrel is aligned to one of the axes, then set the orientation of the ball to match that of the gun (use method "orient to" of the sphere/ball using the gun as argument), and use the appropriate direction (left, right, etc..based on whatever axis is aligned with the barrel) to moving the ball when shooting.
dubastot
06-20-2009, 08:09 PM
I think you can use a "let mouse move object" event. I haven't tried it yet though.
There is a way where you can make your aimer follow the mouse, but I haven't quite figures it out yet. I'll get back as soon as I get
anonymous1
06-21-2009, 09:46 AM
You can use the world's function "mouse distance to edge of screen"....
dubastot
06-21-2009, 01:28 PM
You can use the world's function "mouse distance to edge of screen"....
No there is a lot more to it than that. And I am sure of it. I have almost perfected my method. Maybe in a day it will be read.
dubastot
06-21-2009, 03:21 PM
Here it is. It's a little rough, but here is aiming with the mouse.