Place non overlapping instances at lvl generation (Solved)

Get help using Construct 2

Post » Sun Sep 27, 2015 12:00 am

Hello all :).

I'm trying to generate a map with elements that should not overlap (for them to be separated). What I have here is alright most of the times, but I often get two overlapping outpost/nobuildzoneoutpost on my map.

In my event system, the global variable "CreationStage" should go from "Outposts" to "Colonies" when all the outpost objects have their boolean "FixedPosition" at true. This boolean is fixed at true when the object "Nobuildzoneoutpost" (which is in the same container as the outpost object) isn't overlapping with another outpost's zone or the startpoint's zone.
I don't get where my error is, could anyone point me in the right direction please ?

Here's the .capx : https://drive.google.com/open?id=0BzvT54qnXvYcZE80YldvV3piQmM
Here's the event sheet, I tried to keep it simple : Image


Thanks a bunch :).
Last edited by Oruzee on Mon Sep 28, 2015 12:16 pm, edited 1 time in total.
Image Hats off to me too !
Steam user
B
12
S
2
G
1
Posts: 29
Reputation: 933

Post » Mon Sep 28, 2015 7:54 am

Sorry for the bump, I can't manage to figure this out :/
Image Hats off to me too !
Steam user
B
12
S
2
G
1
Posts: 29
Reputation: 933

Post » Mon Sep 28, 2015 11:37 am

Edit: was nonsense

I changed a little bit in your order.
And it seems to work.
Image
Last edited by Asmodean on Mon Sep 28, 2015 12:06 pm, edited 1 time in total.
B
24
S
3
G
1
Posts: 451
Reputation: 2,165

Post » Mon Sep 28, 2015 12:02 pm

Thanks for your input :)

I just tried it but I still have overlapping instances at the end of the "Outposts" CreationStage's value.
I may have done something wrong, here is my event sheet with your modifications :
Image

And the end result (1 out of 10 times approx) :
Image

I don't really get what I'm missing, sorry :/
Image Hats off to me too !
Steam user
B
12
S
2
G
1
Posts: 29
Reputation: 933

Post » Mon Sep 28, 2015 12:08 pm

I Edit my post. Please look again if this works better
B
24
S
3
G
1
Posts: 451
Reputation: 2,165

Post » Mon Sep 28, 2015 12:14 pm

Ohhhh that was because of a separate event... Thanks a lot, it works like a charm :).
You're my personal John Cena and doves will fly you to Valhalla.
Image Hats off to me too !
Steam user
B
12
S
2
G
1
Posts: 29
Reputation: 933


Return to How do I....?

Who is online

Users browsing this forum: eochranek, fearfulelephants and 18 guests