Change the mouse cursor...

Get help using Construct 2

Post » Sun Mar 04, 2012 4:38 am

I am wanting to change the mouse into a chainsaw, is that possible? The end product will be a floating chainsaw that plays the chainsaw sounds when the mouse button is held down.

Any help would be great! I see where I can change it to a hand, or crosshairs. I just don't see an option to add my own graphic for that.

Thanks in advance.
B
12
S
2
Posts: 75
Reputation: 2,126

Post » Sun Mar 04, 2012 5:15 am

Set your mouse cursor to invisible.
Make a sprite containing the graphics for the chainsaw.

Every tick set this sprite's position to mouse.x, mouse.y

When left mouse button is clicked play your sound.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,998
Reputation: 57,791

Post » Sun Mar 04, 2012 5:17 am

hide the cursor and make a chainsaw sprite follow the mouse coordinates
B
60
S
22
G
14
Posts: 1,479
Reputation: 16,346

Post » Sun Mar 04, 2012 5:18 am

Awesome Kyatric! Thanks for the help!

Edit: And Yann! :)dooley2012-03-04 05:19:06
B
12
S
2
Posts: 75
Reputation: 2,126

Post » Thu May 09, 2013 6:57 am

I agree. a good example!))
B
15
S
6
G
1
Posts: 46
Reputation: 2,753

Post » Thu May 09, 2013 9:20 am

Uh...GROM, this is not a good example. I assume this is an old topic but there is now a way to swap the mouse cursor with a sprite and unlike this method, there is no visual lag because it actually changes the cursor image.
B
10
S
3
G
3
Posts: 234
Reputation: 3,467


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 33 guests