Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Help with CopperCube
Hide/Delete Scenes

dynamogames
Registered User
Quote
2022-07-21 19:16:39

In a game I'm working on, there are 2 scenes named Story and Tutorial, I want to make it that the Story and Tutorial Scene only show once when player first opens the game. I tried deactivating the "Also on Reload option" in the 2 scenes in the "Before First Drawing do something" behavior but it didn't work, the 2 scenes still show anytime I open the game.
I don't if there's anyway to maybe delete the scene or hide it in CopperCube.


Aiming_bullets
Guest
Quote
2022-07-21 20:34:10

you can set AI health back to 100 after respawn, use the variable nodename.health thers is a hashtag symbol right before the nodename.health.


Arcanjo
Guest
Quote
2022-07-22 01:06:59

You have to control the scenes through a variable.
Save the result of the variable on the disk.
When the player runs the game again, load the value of the variable from the disk and you show the current scene you'd prefer.


rajneet
Registered User
Quote
2022-07-22 14:25:51

Arcanjo you are right. You have nice knowledge of CopperCube and computer programming. You should become a registered user here on the CopperCube forum. Your reply is very nice.

I don't know much about programming in CopperCube.

Aiming_bullets you are also right by telling us to use different tricks with CopperCube for making a project. The idea is same which is to make use of variables and apply them with the features available in CopperCube. Aiming_bullets even you should become a registered member on the CopperCube forum since you have programming knowledge of CopperCube.

Thank you for reading.


dynamogames
Registered User
Quote
2022-07-23 01:14:52

Thanks so much, I figured it out@ aiming_ bullet


dynamogames
Registered User
Quote
2022-07-23 01:21:42

@ Arcanjo I was not able to solve the issue with your explanation, when I used variables and I set "Hide Scene Node behavior" and I made Scene(Story) invisible, I noticed after I saved the project and reloaded CopperCube, the "Change which Scene Node in the Hide Scene Node Behavior" which I set to the scene(Story) would just disappear and not show any scene node, I don't know if this is a bug in CopperCube or I'm not doing something right.


rajneet
Registered User
Quote
2022-07-23 09:21:53

Use Switch to another scene action of CopperCube.


just_in_case
Moderator
Quote
2022-07-23 09:24:17

Actually @arcanjo is right, you need to save the variable to disk and you need to load that variable on your game start.

for example in your Tutorial scene, attach a behavior Before first drawing do something, then attach and action, load a variable from a disk, put the variable name like "tutorial".

and now right before when you are switching the scene from tutorial to another scene, attach an action, set or change variable "tutorial" to a value "completed", and then attach action save/load variable to disk, save the variable "tutorial"

and now attach a new every few seconds behaviors, and check for every 1ms, attach if a variable has a value do something, and put "tutorial" as the variable name and check for is equal to a value like "completed" and then in the action switch to the next desired scene.

There might be some example demo files by me lying in the forums from years ago, that show you to do the exact same thing. Wish there was an option to Pin a thread on forums.


dynamogames
Registered User
Quote
2022-07-25 18:32:44

Thanks @just_in_case, @rajneet, @Arcanjo and @Aiming_bullets, I've been able to solve the issue.


rajneet
Registered User
Quote
2022-07-25 21:44:58

Welcome. It is nice to know that you have solved the issue.


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Inter?ational" (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