Make the mouse cursor invisible ?

Get help using Construct 2

Post » Mon Jan 02, 2012 9:34 pm

Hi!

I'd like to make the mouse cursor disappear and eventually be replaced by another object.

Is it possible?

Thanks in advance

Rag
B
17
S
4
G
4
Posts: 137
Reputation: 3,767

Post » Mon Jan 02, 2012 9:36 pm

Add a blank event then in the actions side of that event select mouse, set cursor style, none..

Then every tick add your cursor graphic to the mouses x and y position :)
B
29
S
12
G
7
Posts: 740
Reputation: 7,839

Post » Mon Jan 02, 2012 9:37 pm

PS sorry if i didn't explain the first part very well, let me know if you need a capx
B
29
S
12
G
7
Posts: 740
Reputation: 7,839

Post » Mon Jan 02, 2012 9:38 pm

Yes it's possible!

Insert the Mouse object, then add an event where you set the cursor style to "none".
B
23
S
5
G
5
Posts: 112
Reputation: 4,737

Post » Mon Jan 02, 2012 9:40 pm

Here I made a example with comments :) Enjoy

http://dl.dropbox.com/u/51270524/Custom%20Cursor.capx
B
29
S
12
G
7
Posts: 740
Reputation: 7,839

Post » Mon Jan 02, 2012 9:40 pm

You can Set the cursor style and make it invisible.

To replace it with your own sprite, you'd set the sprite's position every tick to the mouse's position (after having added a mouse object).

@smitchell: you don't need to set the mouse cursor to invisible every tick like you did (a blank event = every tick).
Only set it on startup it's enough.Kyatric2012-01-02 21:42:41
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,999
Reputation: 57,793

Post » Tue Jan 03, 2012 7:28 am

Thanks everybody, I'll try that!
B
17
S
4
G
4
Posts: 137
Reputation: 3,767


Return to How do I....?

Who is online

Users browsing this forum: R0J0hound, Yahoo [Bot] and 25 guests