change mouse point and shoot with mouse?
hi:)
i have little question:
it is not passable to have objet to be the mouse pointer and at the same time to shoot another object with the mouse into the mouse pointer position?
looks like when i gave the object that shoots the bullet into the mouse poiner position the mouse controll movement (with out this mouse shooting is impossable) ,the mouse pointer stand at one position and i can shoot but with no mouse movemnet.
what i am traying to do is to have mouse aim and to shoot with the mouse button , another object (bullet) that will hit the actual position of the mouse.
here is the sample with the problem:
http://rapidshare.com/files/116238678/mouse_shoot_mouse_aim.mfa.html
also, what is the short key to change resolution during aplication?
Re: change mouse point and shoot with mouse?
Quote:
Originally Posted by piki
hi:)
i have little question:
it is not passable to have objet to be the mouse pointer and at the same time to shoot another object with the mouse into the mouse pointer position?
looks like when i gave the object that shoots the bullet into the mouse poiner position the mouse controll movement (with out this mouse shooting is impossable) ,the mouse pointer stand at one position and i can shoot but with no mouse movemnet.
what i am traying to do is to have mouse aim and to shoot with the mouse button , another object (bullet) that will hit the actual position of the mouse.
here is the sample with the problem:
http://rapidshare.com/files/116238678/mouse_shoot_mouse_aim.mfa.html
also, what is the short key to change resolution during aplication?
and on the way, anothere thing about the mouse aim and the bullets. i did it with spacebar key as the trigger, and it shoots nice into the direction of the mouse pointer, but i noticed that it's not allways go in the right direction, sometimes or at some points in the screen, bullet go to few pixels to the right of the mouse pointer or to the left..how do i fix this?
Re: change mouse point and shoot with mouse?
and on the way, anothere thing about the mouse aim and the bullets. i did it with spacebar key as the trigger, and it shoots nice into the direction of the mouse pointer, but i noticed that it's not allways go in the right direction, sometimes or at some points in the screen, bullet go to few pixels to the right of the mouse pointer or to the left..how do i fix this?
here is video sample of what i mean + mfa file..please take a look:
http://rapidshare.com/files/116326521/mfa_video_file.rar.html
Re: change mouse point and shoot with mouse?
When you use mouse movement you have to change "mouse clicked" to "fire 1 pressed". That's caught a few people.
Re: change mouse point and shoot with mouse?
The easiest way to do it is to code the mouse controled object manually, don't use the Mouse Controled movement type. Instead, set the Windows Mouse Pointer to invisible and then always set the crosshairs to the X and Y position of the mouse. Then you can control the mouse actions via the mouse controls.
Re: change mouse point and shoot with mouse?
I could never really figure out why the 'mouse movement' movement was included. All it did was remove the need for 2 actions and complicate MMF.
Re: change mouse point and shoot with mouse?
Quote:
Originally Posted by Paul_Boland
The easiest way to do it is to code the mouse controled object manually, don't use the Mouse Controled movement type. Instead, set the Windows Mouse Pointer to invisible and then always set the crosshairs to the X and Y position of the mouse. Then you can control the mouse actions via the mouse controls.
ok..i did the same thing like you said on the first example i posted here, but the problem is:can't use the mouse to shoot object and at the same time to have the crosshairs moving.
if i have to only replace the mouse pointer with new object to be the mouse pointe, i have no problem to do it, but to do it and to use the mouse as the shooting key (right click or left)..this not passable..pointer is freezing and i can only shoot. not 2 actions with the mouse device...thats the problem..check my example i made in the head of the topic..it's very small download.
btw-(thanks alot for the fast reply:)
Re: change mouse point and shoot with mouse?
Here:
http://www.clickteam.com/epicenter/ubbthreads.php?ubb=showflat&Number=91821#Post91821
Re: change mouse point and shoot with mouse?
Quote:
Originally Posted by Nick
I could never really figure out why the 'mouse movement' movement was included.
The mouse movement adds one major feature: Confinement. You can very easily confine the mouse controlled object within a box. Onw minor feature could be the ability to retrieve the direction the mouse is moving in.
Re: change mouse point and shoot with mouse?
Quote:
Originally Posted by RickyRombo
Here:
http://www.clickteam.com/epicenter/ubbthreads.php?ubb=showflat&Number=91821#Post91821
thanks man:) finaly made it to work, but i can't get the aim to be correct in all the angles of the shooting..i gave the bullet 32 direction's and placed the hot spot in the center of the bullet, but still in some angles..the bullet even not cross the target:( also place the hot spot in the center of the target.
here i made sample how it miss the target:
http://rapidshare.com/files/116512177/aim_not_correct.rar.html
can you guide me how to correct this?
Re: change mouse point and shoot with mouse?
The only thing I can say to that is make your target biger or your shooter closer, cause I still haven't figured that one out.
Re: change mouse point and shoot with mouse?
ok mate:) thanks alot for your help , i appreciate the effort.
i am working for long weeks on new arcade title. tile now i made alot of media and animation's and i kinda builded the first level and during the media creation, i am testing stuff in the level and this one with the target, is one of them.
i am sure we will figure it out.
(when the level will be ready, i'll post it on the file archive)
Re: change mouse point and shoot with mouse?
cool! :) Can't wait to see it
Re: change mouse point and shoot with mouse?
I have the same problem as you, that is the bullet is not anywhere close to the point I am pointing at if i have the mouse in some places. What can be done about this?
Re: change mouse point and shoot with mouse?
Why not use the Bullet Widget by MuddyMole , You can accomplish what you are trying to do with it.
http://www.clickteam.com/epicenter/ubbthreads.php?ubb=showflat&Number=109739#Post1097 39