Change Mouse Cursor
titanicfanatic

Hi there, I'm creating a very simple learning tool which has images of different colors of paint smears. I've made each image a Sprite and added to SceneObject and the audio of the color plays when clicked. The only thing I'm missing now is the mouse cursor does not change to a pointer when you hover over a clickable area and cannot seem to figure out how to accomplish this. It seems to me that it might not even be implemented, or is it and I'm missing it?

All 2 Comments
krumza

Change  cursor it is a browser work,

try this as function, or do it as Behaviour

    yourObject.onMouseIn = function()
    {
        document.body.style.cursor = 'pointer';
    };
    yourObject.onMouseOut = function()
    {
        document.body.style.cursor = 'default';
    };
titanicfanatic

I knew it would be so simple ;-) Thanks a bunch for this!

Post a reply
Add Attachment
Submit Reply
Login to Reply