Custom cursor via html/css (no lag solution)

0 favourites
  • 3 posts
From the Asset Store
Cursor Magic
$2 USD
80% off
Mouse cursor is something that the player controls and sees all the time, that's why it is so important to make it cool!
  • 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 <img src="smileys/smiley1.gif" border="0" align="middle">

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • 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.

  • 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".

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)