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?
Change Mouse Cursor
titanicfanatic June 9th, 2017
All 2 Comments
krumza June 9th, 2017
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 June 10th, 2017
I knew it would be so simple ;-) Thanks a bunch for this!
Post a reply
Add Attachment
Submit Reply
Login to Reply