Choosing one tile at random, optimize, order..

Get help using Construct 2

Post » Thu Jan 29, 2015 6:21 pm

Hello!

I want to fill the screen tiles (which are already generated but invisible) in a random manner, making them visible.

So far I have this capx I am attaching.

My isssues:

1. Too slow!!!! And this is even a small sample screen. The level is bigger....

2. I would like it to enable a tile by random per row, then going down a row, enable a tile there by random, next row... then back to top, repeat... Of course using loops. I am daft at moment so I would love some help here.

Thanks for the help.
You do not have the required permissions to view the files attached to this post.
B
58
S
18
G
13
Posts: 447
Reputation: 10,735

Post » Thu Jan 29, 2015 7:15 pm

have you tried this tut? scirra.com/tutorials/307/arrays-for-beginners
B
5
Posts: 23
Reputation: 317

Post » Thu Jan 29, 2015 7:26 pm

@augmento
The random color tile example in that tutorial is not what I wanted. I want random tile position (to make it visible) and not random tile as the tiles are already generated and have their order as from TMX importer.

But, I will do it myself instead.. I just hate loops, haha.
Now creating a new array and use that instead. I just hoped to able to do without adding another array.
B
58
S
18
G
13
Posts: 447
Reputation: 10,735


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 1 guest