Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > CopperCube Open discussion
cc tip

coa
Registered User
Quote
2022-07-09 11:47:45

if you are hiding and showing a 2d overlay with code dont insert the code on the 2d overlay .. insert it somewhere else i had trouble with the 2d overlay not showing when i had the code on it seems like cc does not like that.

just a small tip hope it helps


Robo
Guest
Quote
2022-07-09 12:04:02

yes, once made invisible, any attached code will no longer work so keep the code on something always visible and wont be a problem.


just_in_case
Moderator
Quote
2022-07-09 13:01:47

The recommended is to use Hide and Unhide on the Root scene node for every objects that you want to hide or unhide. As root scene node is always visible and you can't hide it.


coa
Registered User
Quote
2022-07-09 13:42:50

yes, once made invisible, any attached code will no longer work so keep the code on something always visible and wont be a problem.

ok did not know the code would not work when on hidden node. good tip


andgameplay
Registered User
Quote
2022-07-11 00:20:30

Thanks the tip coa!


Guest
Guest
Quote
2022-07-11 16:18:24

Don't forget you can run code from a folder node in the scene. Say you have a folder called Scripts and another folder under it called LightSwitch. You can place the meat of the logic for the switch on that node and then just have the actual switch toggle a variable when clicked on or something. Then if true the LightSwitch folder will do its thing or whatnot. I prefer doing it this way because I can name the folders and find stuff more easily than simply putting it all on a single node.


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Internation?l" (you are not logged in)


Text:

 

  

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