[SOLVED] Random mini-game generator like Wario Ware Inc.

Get help using Construct 2

Post » Mon Jul 27, 2015 11:56 pm

Hi C2 developers! ^^

Someone has an idea (or even a CAPX) of how to create a random sorter/generator of mini-games like Wario Ware Inc?

I can make a random generator of objects using the functions random and choose, but in this case I cannot keep repeating something (a mini-game) successively, but creating a routine of randomness that prevents a mini-game played now be played again soon then.

For example, if I have 5 mini-games (A, B, C, D, E) and I just play the B, so I want the chance of the game B appear again is between 3-5 games ahead. There is also the factor progressive difficulty. For this I created a variable "level" in each mini-game with a routine that handles speed and energy.

PS.: I ask because I'm only a designer and not a genius in mathematics and programming as various here.

Once again, thank you in advance for your attention and cooperation of you.
Last edited by lukezero on Tue Jul 28, 2015 12:06 pm, edited 1 time in total.
B
39
S
9
G
3
Posts: 261
Reputation: 4,361

Post » Tue Jul 28, 2015 6:43 am

Depends how serious you are. One way is to have layouts with game names e.g. "game1" "game2" and so on, and use switch to layout with an expression, and use global variables to track the level and the current game and recent ones. If your games are more serious you are probably better to do them as seperate games and link them together using Javascript/HTML
My tutorial through development blog is at http://myconstruct2dev.blogspot.co.uk/
B
12
S
3
Posts: 221
Reputation: 1,328

Post » Tue Jul 28, 2015 11:26 am

I don't play this game before but if you want a random sequence of levels you can use this
https://drive.google.com/file/d/0BzXd1GMzUo9HeDdNQUZwbkpZRDg/view?usp=sharing
B
21
S
8
G
6
Posts: 177
Reputation: 8,134

Post » Tue Jul 28, 2015 12:03 pm

Thanks for the tip, @paulscottrobson. :)

I also thought of three variables to establish past, present and future of randomness, but in terms of integration of the mini-games, I didn't know the best way to do this.
B
39
S
9
G
3
Posts: 261
Reputation: 4,361

Post » Tue Jul 28, 2015 12:06 pm

WOW! Thanks for the CAPX, @mrcgkh! It is exactly what I need! :D

I will study it to understand it and implement it. ^^
B
39
S
9
G
3
Posts: 261
Reputation: 4,361

Post » Tue Jul 28, 2015 1:01 pm

B
21
S
8
G
6
Posts: 177
Reputation: 8,134

Post » Tue Jul 28, 2015 1:42 pm

Thanks so much for the help, @mrcgkh! :D

THANKS THANKS THANKS ^^
B
39
S
9
G
3
Posts: 261
Reputation: 4,361


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 11 guests