monoray Registered User |
Quote
|
2017-03-19 00:12:29 |
|
Ok so for my game its third person, and you need to be able to see the mouse, is there a setting to do this? also does the add-on that sets the cursor to something else in web gl also work on exe?
|
niko Moderator |
Quote
|
2017-03-19 15:08:08 |
|
You can use a JavaScript action and enter this to make it visible:
ccbSetCursorVisible(true);
Probably do it every frame.
But I don't think there is an addon which changes the mouse cursor works also with WebGL. Which addon do you mean?
|
hgi Registered User |
Quote
|
2017-03-19 22:29:34 |
|
function onFrameDrawing() { var mouseX = ccbGetMousePosX(); var mouseY = ccbGetMousePosY();
ccbDrawTextureRectangleWithAlpha("customcursor.png", mouseX-10, mouseY-10, mouseX+10, mouseY+10); }
ccbRegisterOnFrameEvent(onFrameDrawing);
Is this what you're looking for?
|