Problem with creating sprites with specific number

Get help using Construct 2

Post » Fri Jul 07, 2017 11:57 am

Hi,
I am trying to create a hexagon style sprites with a specific number,
I limit to create number to 10, but it creates 11
I couldn't solve the problem

I will be grateful if you help me...
my capx: http://englishpedia.net/kk/create-number.capx
B
13
S
9
G
2
Posts: 23
Reputation: 2,373

Post » Fri Jul 07, 2017 1:00 pm

It's because on one of the repeats the sprite count will be 7 and 8 at the same time, therefore being valid for both conditions in C2's top-down structure. Sprite count will be 7 and create a hex based on the first condition, then once this is created, sprite count will be 8 and be valid for the second condition, creating 2 hex in one loop. As for an actual solution, hmmm *working on it.
B
45
S
15
G
73
Posts: 2,008
Reputation: 43,398

Post » Fri Jul 07, 2017 2:18 pm

Not sure if this is exactly what you're after, but it will generate a map of hex tiles:

https://www.dropbox.com/s/5y69dqolh6abq ... .capx?dl=0

You can specify the total number of tiles and tiles per row in the globals.
B
16
S
7
G
3
Posts: 396
Reputation: 3,700

Post » Fri Jul 07, 2017 4:37 pm

Thanks for the replies. Great
B
13
S
9
G
2
Posts: 23
Reputation: 2,373


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 13 guests