small problem with mouse controlled object
Hello.
This should be simple but I´m stuck with this small problem: I have a mouse controlled object and I want it to play an animation when the user clicks the left button but for some reaon the "user clicks" condition do not respond. It does work if the object is not mouse controlled. Is there anyway to make both work together?
Thanks a lot,
Nicolai
Re: small problem with mouse controlled object
The user clicks condition is disabled with the mouse movement. Francois had to set the mouse to always remain in the center of the screen for the movement to work.
Instead, don't use the mouse movement. Use the events:
Always: Set X Position to xmouse
Always: Set Y Position to ymouse
Re: small problem with mouse controlled object
If you test the player object and the joystick it will detect if your using mouse control and then...
Fire 1 is one of the mouse button
Fire 2 is the other mouse button
Re: small problem with mouse controlled object
The "press fire 1" on the joystick event works!
Great trick, thanks a lot!
Nicolai