Infinite Loop? How should I be doing this?

Get help using Construct 2

Post » Fri Apr 19, 2013 1:20 pm

I'm trying to set up random tiling to create a game grid, but I believe I am creating an infinite loop or otherwise crashing the browser.

Can anyone help determine why?



Download the .capx here:

BoardGame.capxExcal2013-04-19 13:21:01
Project Lead of Zems Online Card Game

Producer at Impulse Limited
B
18
S
6
G
3
Posts: 677
Reputation: 5,194

Post » Fri Apr 19, 2013 2:11 pm

You don't have any zone objects in the layout, so referring to zone.width or zone.height returns 0, which causes division by 0.
B
24
S
8
G
7
Posts: 756
Reputation: 7,192

Post » Fri Apr 19, 2013 2:18 pm

vee to the rescue! Thank you sir!

I guess that's what I get for messing with C2 too late at night!
Project Lead of Zems Online Card Game

Producer at Impulse Limited
B
18
S
6
G
3
Posts: 677
Reputation: 5,194

Post » Fri Apr 19, 2013 2:20 pm

[QUOTE=Excal]
I guess that's what I get for messing with C2 too late at night![/QUOTE]

We`ve all been there :-)
B
24
S
8
G
7
Posts: 756
Reputation: 7,192


Return to How do I....?

Who is online

Users browsing this forum: jeffige, TheHat and 1 guest