Is there a way to set the mouses position?

Get help using Construct 2

Post » Sun Feb 26, 2017 5:50 pm

I am making a top down shooter, with controls/aiming similar to Hotline Miami. And I would like some of the weapons to shake the cross-hair, (The mouse) to simulate recoil. I was wondering if it is possible to set the mouse's position in construct 2.
B
21
S
3
Posts: 53
Reputation: 1,100

Post » Sun Feb 26, 2017 7:16 pm

angryscientist wrote:I am making a top down shooter, with controls/aiming similar to Hotline Miami. And I would like some of the weapons to shake the cross-hair, (The mouse) to simulate recoil. I was wondering if it is possible to set the mouse's position in construct 2.



Hmmmm?

I don't think you can set the mouse position but you can use a sprite with a shake animation to simulate that.

Make a shake animation of the crosshairs and move the image point left and right and use that for your cursor.

When you call that animation it will appear to recoil or shake.

I haven't tried it but should work.
Banned User
B
28
S
7
G
58
Posts: 1,229
Reputation: 34,825

Post » Sun Feb 26, 2017 8:35 pm

@lamar I will try that
B
21
S
3
Posts: 53
Reputation: 1,100


Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 9 guests