≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
Press E to do something
Posted by:
(you are not logged in)
Enter the missing letter in: "Internationa?"
(you are not logged in)
Text:
[quote][b][/b] wrote: this will return true if your player ("playerName") enter on object ("objectName") in range of "distance", after you can do something like enter to another room or change scene by press some key [code] function enter_on(playerName, objectName, distance){ var p_pos = ccbGetSceneNodeProperty(ccbGetSceneNodeFromName(playerName),"PositionAbs"); var o_pos = ccbGetSceneNodeProperty(ccbGetSceneNodeFromName(objectName),"PositionAbs"); if(p_pos.x < o_pos.x + distance && p_pos.x > o_pos.x - distance && p_pos.z < o_pos.z + distance && p_pos.z > o_pos.z - distance) return true; else return false; } [/code] you can create node with billboard inside and set this function to visible, this will show and hide billboard (just "e" or "press e" text inside texture) if you need i can upload some example[/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