Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Help with CopperCube
how to have mouse not go away?

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?


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Intern?tional" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact