The following block shows a simple method for making your own custom cursor. Please refer to the Stencyl community help section for further details on coding blocks.
General Gist : this little 'how to' covers some basics for making a custom cursor in Stencyl. In a nutshell, you need to hide the default operating system cursor and swap out for your own custom cursor, which will be an actor type.
Part 1 : Graphics
1 ) Firstly you will need to draw your one custom cursor in graphics program of your choice. I used Adobe Illustrator to draft up this pointer and exported it as a .PNG – Dims 29px 27 px, remember to save your .PNG in logical place in your project folder.
Part 2 : Importing a Cursor As An Actor Type
1 )Open Stencyl and navigate to your game project (assuming you have already made a project)
2 )In the upper left corner press on the “Actor types”and create a new actor. You will then need to add a frame and import your newly created cursor!
Part 3 : How To Make it work
1 ) Click on 'actor behaviours' and create a new behaviour! This will be a basic behaviour to make your Cursor work in your game.
2 ) Click “add event” in the top of the panel. Add > When updating
3 )You can either navigate through the code blocks manually or you can search for them. Using the image shown. Thats how to make a basic Cursor in Stencyl! Don't forget to attach the block to the Cursor Actor, the green button in the top right will allow you to do this - “Attach to actor”
|Block for making custom cursor|
|Bug with cursor full screen * untick fullscreen mode!|
Please take into account that the flash player from Stencyl ( when tested from the game ) game glitches in full screen mode. The main default operating system mouse will still be visible despite having the cursor hidden.This could be an apparent issue with the flash player. - Dated from May 2016. Try unticking the full screen mode... Not the best
Notes : this bug happens on a iMac OSX i5 10.9.5