≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
Changing texture with mouse clicks
Posted by:
(you are not logged in)
Enter the missing letter in: "?nternational"
(you are not logged in)
Text:
[quote][b]poliginal[/b] wrote: I got another question. I have a "ccbDrawTextureRectangleWithAlpha" in my scene that is executed trough javascript. I want to change between different textures when i hold down the mouse, and when i let go of the mouse. Here is the code i am working on. function onFrameDrawing() { var mouseX = ccbGetMousePosX(); var mouseY = ccbGetMousePosY(); ccbDrawTextureRectangleWithAlpha("glove.png", mouseX-100, mouseY-100, mouseX+100, mouseY+100); } ccbRegisterOnFrameEvent(onFrameDrawing); How do i set up mouse events,if statements etc?[/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