≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
Custom Mouse icon
Posted by:
(you are not logged in)
Enter the missing letter in: "Internati?nal"
(you are not logged in)
Text:
[quote][b]Robo[/b] wrote: Anyone want to chanhe the defaui;lt mouse icon in your game - this Action extension works: // This changes the mouse icon and is stopped by default when variable 'cursor' equals 0 & started with anything but 0; // link a new png file image with a transparent background; /* <action jsname="action_MouseIcon" description="New mouse icon"> </action> */ action_MouseIcon = function() {}; action_MouseIcon.prototype.execute = function() { var me = this; this.registeredFunction = function() { me.onFrameDrawing(); }; ccbRegisterOnFrameEvent(this.registeredFunction); } action_MouseIcon.prototype.onFrameDrawing = function() { var check = ccbGetCopperCubeVariable("cursor"); if(check == 0) { ccbUnregisterOnFrameEvent(this.registeredFunction); } var mouseX = ccbGetMousePosX(); var mouseY = ccbGetMousePosY(); ccbDrawTextureRectangleWithAlpha("data/tex/cursor.png", mouseX-20, mouseY-20, mouseX+20, mouseY+20); };[/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