≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
3rd Person Player & Camera Controller 2021
Posted by:
(you are not logged in)
Enter the missing letter in: "In?ernational"
(you are not logged in)
Text:
[quote][b]csp-games[/b] wrote: EDIT forum thinks this is spam because of variable m.o.u.s.e.x, so I write mouse?... here's how to mod my script to get mouse speed without the browsers movement xy handler at the top add global variables; var bb2js__oldmouse? = 0; var bb2js__oldmousey = 0; at the beginning of the main task add something like bb2js__oldmouse? = bb2js__mouse? ; bb2js__oldmousey = bb2js__mousey; bb2js__mouse? =ccbGetMousePosX(); bb2js__mousey =ccbGetMousePosY(); if(bb2js__mouse_down==1) { bb2js__mouseXspeed=bb2js__mouse?-bb2js__oldmouse?; bb2js__mouseYspeed=bb2js__mousey-bb2js__oldmousey; } That would require also these functions: function mousePressedDown(button) { if(button==1){bb2js__mouse_down=1;} } function mouseLeftUp(button) { if(button==1){bb2js__mouse_down=0;} } And to make them CC callbacks in the first execution section, where now mouseinit() and keysinit() are called: ccbRegisterMouseDownEvent("mousePressedDown"); ccbRegisterMouseUpEvent("mouseLeftUp"); You can proceed similarly with all the keys used. Once this works, remove my keys and mouse handlers.[/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