≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
Opening/Closing door
Posted by:
(you are not logged in)
Enter the missing letter in: "In?ernational"
(you are not logged in)
Text:
[quote][b][/b] wrote: Allrighty... Here's all the steps: With the door selected, add the behaviour "When clicked on this do something": In Action, add "If a variable has a value, do something": - Give it a variable name, I'll use "Door" - Use "Is equal to" - Value: "null" -- In action, add "Change rotation of a scene node", and rotate the door as much as you want (this is the open door-animation). -- Also add "Set or Change a Variable", -- Variable name: "Door" -- Operation "Add" -- Value "1" Then, go back to the actions for "When clicked on this do something" and add another "If a variable has a value, do something": - Variable name: "Door" - "Is equal to" - Value: "2" -- In action, add "Change rotation of a scene node", and rotate the door back to closed position (if you use absolute rotation, this should be 0,0,0) -- Also add "Set or Change a Variable", -- Variable name: "Door" -- Operation: "Subtract" -- Value: "2" Then, again, add a third "If a variable has a value, do something": - Variable name: "Door" - "Is bigger than" - Value: "0" -- In action, add "Set or Change a Variable" -- Variable name: "Door" -- Operation: "Add" -- Value: "1" And you're done! Kind of repetitive, but it works... If you can't make it work, just ask! *EDIT* For some reason, I can only make this work in Windows Application, not in WebGL and Flash... Does anybody know why?[/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