Check if object is - SLIGHTLY outside layout. [SOLVED]

Get help using Construct 2

Post » Thu Dec 01, 2016 9:51 pm

Hello all.

I spawn a number of buildings in my world (50 buildings)

now some of these are created nearly on the outside of the layout, i do not want that to happen, but i cannot seem to find a way to check if the object is slightly outside my layout.

I want a way to check is a object is slightly outside the layout, if so, i want to destroy it / or move it.

CAPX is here
https://www.dropbox.com/s/5f2wl22lxf8xxno/0.0.0.2%20-%20Make%20houses%20test.capx?dl=0

Look at Evt_BuildCity
Last edited by CrudeWall on Fri Dec 02, 2016 5:35 pm, edited 1 time in total.
B
16
S
8
G
1
Posts: 153
Reputation: 2,549

Post » Thu Dec 01, 2016 10:22 pm

There might be other more elegant ways but here's one way to do it:

https://dl.dropboxusercontent.com/u/163 ... etest.capx
B
31
S
9
G
4
Posts: 131
Reputation: 4,321

Post » Fri Dec 02, 2016 5:35 pm

Waltuo wrote:There might be other more elegant ways but here's one way to do it:

https://dl.dropboxusercontent.com/u/163 ... etest.capx


It fixed it so that is something :) - I thank you good sir, it will suffice for what I am doing.
B
16
S
8
G
1
Posts: 153
Reputation: 2,549

Post » Fri Dec 02, 2016 7:36 pm

No problem, happy to help!:)
B
31
S
9
G
4
Posts: 131
Reputation: 4,321


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 16 guests