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
Check out my first word hex game: Hexagon Game
B
16
S
9
G
2
Posts: 25
Reputation: 2,454

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
47
S
18
G
84
Posts: 2,266
Reputation: 49,786

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
22
S
9
G
4
Posts: 476
Reputation: 4,327

Post » Fri Jul 07, 2017 4:37 pm

Thanks for the replies. Great
Check out my first word hex game: Hexagon Game
B
16
S
9
G
2
Posts: 25
Reputation: 2,454


Return to How do I....?

Who is online

Users browsing this forum: LaurenceBedford and 7 guests