ambiera logo

Ambiera Forum

Discussions, Help and Support.

folder icon Ambiera Forum > CopperCube > CopperCube Open discussion
forum topic indicator Copper cube opens random level
person icon
Max
Guest
Quote
2023-05-24 14:54:56

How do i make coppercube to open level randomly from given options mean i want that once i clicked on play button from main menu i want that it will open any random level.

person icon
just_in_case
Moderator
Quote
2023-05-24 15:36:38

You can use variables for that, there is an action that sets random value and based on that random value, you can have if variable for each level.

for example if you have 4 levels in your games and you want to select random from them when the game starts, then you can set minimum and maximum value for the random variable, and then on click on play button set random value first and have 4 if a variable has value do something actions, if variable has value 1 switch to level 1, if variable has value 2 switch to 2nd level and so on.

it will be much easier with scripting but won't be complicated with actions and behaviors.

There are many games in the community and example files that shows random selection. Just go through them, you can find many examples on itch.io and a few demos on my website Neophyte.cf as well.
https://neophyte.cf/assets.html

person icon
MAx
Guest
Quote
2023-05-25 12:54:07

Oh i didnt think about this thank youemoji icon_smile


Create reply:










 

  

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


icon_holyicon_cryicon_devilicon_lookicon_grinicon_kissicon_monkeyicon_hmpf
icon_sadicon_happyicon_smileicon_uhicon_blink   






Copyright© Ambiera e.U. all rights reserved.
Contact | Imprint | Products | Privacy Policy | Terms and Conditions |