How do I make a custom cursor appear

Get help using Construct 2

Post » Sun Jul 02, 2017 5:56 pm

I want to make a game in which the ccursor will be able to take any form I like. I can do that by having a sprite be at the mouse's position every tick but is there a way to make the normal cursor disappear, or better yet change it with the sprite one?
B
6
Posts: 12
Reputation: 276

Post » Sun Jul 02, 2017 8:01 pm

Yes you can its easy to do so.

on start of layout -> Mouse -> set cursor from sprite.
Like my work? Fallow me on social media, and see my games on the arcade.
B
7
S
5
G
9
Posts: 298
Reputation: 5,367

Post » Sun Jul 02, 2017 10:01 pm

imhotep22 wrote:Yes you can its easy to do so.

on start of layout -> Mouse -> set cursor from sprite.


I did that and it didn't work. Even when I start the layout the cursor remains the same
B
6
Posts: 12
Reputation: 276

Post » Mon Jul 03, 2017 5:44 am

I think you can import the cursor object then have every tick set cursor to none then have another sprite pinned to cursor.X
and cursor .Y and have that on an every tick statement
Image
B
24
S
13
G
11
Posts: 277
Reputation: 8,685

Post » Mon Jul 03, 2017 9:57 am

LaurenceBedford wrote:I think you can import the cursor object then have every tick set cursor to none then have another sprite pinned to cursor.X
and cursor .Y and have that on an every tick statement


It seems you can't set it to none and even with Every Tick instead of On start of Layout nothing happens. Luckily for me though I wanted to make it chance to the different types you normally see (hand, text select etc) so I used Set Cursor Style instead which worked with On start of layout.
B
6
Posts: 12
Reputation: 276

Post » Mon Jul 03, 2017 11:19 am

I used on start of layout -> Mouse -> set cursor from sprite on my games and it works fine, you probably done something wrong.

But yeah you can also use set cursor style if it suits your need's.
Like my work? Fallow me on social media, and see my games on the arcade.
B
7
S
5
G
9
Posts: 298
Reputation: 5,367


Return to How do I....?

Who is online

Users browsing this forum: mindragon73, nahima and 25 guests