Actually, you can!
There's a special function we can use in the script editor called
ChangeCursor.
You need to have an image for it, of course.
To get it set up you have to do something like in this demo:
What's going on here is:
I added a canvas actor (A region would work as well, and you should probably use a region instead).
Make sure to set the
z-depth of this actor as high as possible, and parent it to the view.
Then, on the canvas actor, I created an event for
Mouse Enter which has a script for script editor reading:
- Code: Select all
ChangeCursor("Event Actor", "data/cursor.gif", 1, 1, 0, 0);
Look for the command in the
variables/functions menu
cursor.gif being the image I use in the data folder of the game.
I also went in and created two
Create Actor events that do
Event Disable for
Mouse Down or
Mouse Up events.
This is important! If you don't do this, nothing will respond to clicks from your mouse.
When creating the cursor image, GameEditor will take the top left pixel of the image and use it as the transperant colour, so I making the background of the cursor image pink, moving the cursor down one row so that the top left pixel is the pink colour, and then using it. Also make sure to set the hotspot to "1" to account for the fact that you moved the cursor down on the image. Your result should be something like this:
- 10-25-2013 10-40-49 PM.png (556 Bytes) Viewed 4137 times