Code for Custom mouse cursor in CopperCube 6
Jump to navigation
Jump to search
Full code for Custom mouse cursor in CopperCube 6 tutorial.
function onFrameDrawing() { var mX = ccbGetMousePosX(); var mY = ccbGetMousePosY(); print('x:'+mX+', y:'+mY); ccbDrawTextureRectangleWithAlpha("mycursor.png", mX-4, mY-4, mX+28, mY+28); ccbSetCursorVisible(false); } ccbRegisterOnFrameEvent(onFrameDrawing);