Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
hello to all hope you can help me I used this script to load a texture for the mouse function onFrameDrawing () { var mouseX = ccbGetMousePosX (); var mouseY = ccbGetMousePosY (); ccbDrawTextureRectangleWithAlpha ("customcursor.png", mouseX-10, mouseY-10, mouseX + 10, mouseY + 10); } ccbRegisterOnFrameEvent (onFrameDrawing); the pquando I try the game appears on top of a console that says it has loaded the texture and can not make it visible? thank you so much |
||||
|
Hello, It should be similar to the below code:
Hints: - Think about hiding the default mouse cursor as well (use ccbSetCursorVisible () function) - Make sure that the customcursor.png exists in the same location as your project/executable otherwise use the full correct path holding the file (and make sure to replace every \ with \\ double slash in the path) You may check the below quick example as well: http://www.techno-valley.com/amb... |
||||
|
Added mouse template to MTM asset store under coppercube templates category on sidebar https://marshtownmadness.com |
|