≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
Swimming and UI
Posted by:
(you are not logged in)
Enter the missing letter in: "Internation?l"
(you are not logged in)
Text:
[quote][b][/b] wrote: Welcome! :) Nope these aren't dumb questions at all! To put it simply, you can tweak the gravity settings in the root scene node (click on the root named "New 3D Scene1") and set it to something low such as 0.09 or a bit higher) If you don't want to have moon gravity when on the land, you can have the default gravity set to something like 1 or 5 and once you enter the water (proximity event attached to a cube perhaps) then set the gravity with this (paste this code into a "Execute JavaScript" action) Thanks to tim12345! [code]var root = ccbGetRootSceneNode(); ccbSetSceneNodeProperty(root,"Gravity",0.09);[/code] replace 0.09 with whatever value you find works best. Use 2D overlays for game UIs. You can also have them animate when the mouse enters it by enabling the "On hover animate" parameter. Hope this helps![/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