≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
behavior to Display Current Altitude.
Posted by:
(you are not logged in)
Enter the missing letter in: "Inter?ational"
(you are not logged in)
Text:
[quote][b][/b] wrote: Sorry, i was busy... If i have read your post i definately have answered you... Reagrding to your question.... As i have already provided you a link to diffrent thread ... In another post... On how to create a fall damage based on comparing altitude using the time... You can easily understand the javascript code provided there.... To make it convenient for you am pasting the cose here too..... [Quote] First set a coppercube variable...I called mine "Altitiude" Then run this code every second using the looped interval behavior (Can't remember what it is called) --------------------------------------------------------------------------------- [Code]var LastAltitude = ccbGetCopperCubeVariable("Altitude"); print(LastAltitude); var s = ccbGetSceneNodeFromName("Camera1"); var position = ccbGetSceneNodeProperty(s, "Position"); ccbSetCopperCubeVariable("Altitude", position.y) var currentAlt = position.y; currentAlt = currentAlt + 60; if(LastAltitude > currentAlt) { print("Died"); }else { print("Working"); }[/code] -------------------------------------------------------------------------[/quote] The above method is posted by another user... But uses my behaviour script to make a fall damege... It is just modified version of my script... You can change the variable and valaues accordingly to make this work for you... Have patience, i go through all the post in the forums... And will reply to most of them , when necessary... There maybe possibility that am not active , or is busy... This doesn't mean am ignoring or not answering your posts...*holy*[/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