≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
help mouse
Posted by:
(you are not logged in)
Enter the missing letter in: "Internationa?"
(you are not logged in)
Text:
[quote][b][/b] wrote: Hello, It should be similar to the below code: [code] function onFrameDrawing () { var mouseX = ccbGetMousePosX(); var mouseY = ccbGetMousePosY(); ccbDrawTextureRectangleWithAlpha ("customcursor.png", mouseX-10, mouseY-10, mouseX+10,mouseY+10); } ccbRegisterOnFrameEvent (onFrameDrawing); [/code] [b] Hints: [/b] - 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: [url] http://www.techno-valley.com/ambiera/mouse_cursor_demo.zip [/url][/quote]
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