Custom cursor via html/css (no lag solution)

Discussion and feedback on Construct 2

Post » Thu Jun 14, 2012 1:57 pm

Hey, Scirra, how about implementing custom mouse pointers via standard web technologies (EXAMPLE)? You may say that we already have it ("set cursor to" from Mouse Object). But there's no posibility to point Construct 2 to URL, where custom cursor is located.
So if we can style="cursor: crosshair", why can't we implement style="cursor: url('mycursor.cur')"?

Pros and Cons:
+ No mouse lag at all (!!!);
+ Works only inside Construct 2 window (wont break cursor style on another opened pages);
+ Can be controlled as easy as controlling sprites (ie. changing cursor on the fly etc.);
- cursor should be stored as .cur or .png (not sure about png, but it just works);
- may be used only with html (but who cares?);

Please post your opinion. I think this is a high priority for any game, using custom cursors.

ADDED:
This could be done as one-framed (or even multi) animations, where name of animation is name of cursor. And Construct 2 could save them by itself, you just point him a sprite, and, when you exporting project it lies there, in mouse animations! Ta-Da! Damn, I'm so cool NugMan2012-06-14 14:04:52
B
19
S
6
G
4
Posts: 171
Reputation: 2,507

Post » Fri Jun 15, 2012 12:07 pm

This is a good idea, but it's not supported by all browsers. The link you gave doesn't work in Firefox, and apparently IE doesn't support using PNG files as cursors. I'll take another look for a later build though.
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,528

Post » Fri Jun 15, 2012 12:16 pm

Good to hear. I'll brand my game for Chrome, but with ability to play in Firefox too. But Chrome will use custom cursor (i hope you will give us such opportunity sometime), and Firefox just standart "Crosshair".NugMan2012-06-15 12:16:57
B
19
S
6
G
4
Posts: 171
Reputation: 2,507


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 6 guests