Tile Map Problem.

Get help using Construct 2

Post » Sat Mar 01, 2014 6:13 pm

I have this capx(See attachment).Oh New forum has attachments posting available?Thank you scirra.

At the start of the layout,global variable "next" chooses something from 0 to 30.
Then the Sp1 is created on Map.TileToPosition(next).

What I want to do is,If there is an object Sp1 already in that Area(Overlapping area),Create it in the nearest possible Map.TileToPosition without overlapping.
I can't find any way around this.Any help?
Test123.capx
You do not have the required permissions to view the files attached to this post.
I will not let you reach the sisters
Nature Forums
B
11
S
5
G
2
Posts: 496
Reputation: 2,306

Post » Sun Mar 02, 2014 9:26 am

Any one?
I will not let you reach the sisters
Nature Forums
B
11
S
5
G
2
Posts: 496
Reputation: 2,306

Post » Sun Mar 02, 2014 10:02 am

Something like this ?
You do not have the required permissions to view the files attached to this post.
Who dares wins
B
57
S
17
G
21
Posts: 1,878
Reputation: 19,592

Post » Sun Mar 02, 2014 1:08 pm

@lennaert
It's sometimes still created overlapping others
I will not let you reach the sisters
Nature Forums
B
11
S
5
G
2
Posts: 496
Reputation: 2,306

Post » Sun Mar 02, 2014 1:42 pm

Thats because it just moves it 10 something to the right.

Oh well, here is another approach, makes it slide a bit on overlaps on start of layout.
You do not have the required permissions to view the files attached to this post.
Who dares wins
B
57
S
17
G
21
Posts: 1,878
Reputation: 19,592

Post » Sun Mar 02, 2014 5:46 pm

That's ingenious.Thank you so much ;)
I will not let you reach the sisters
Nature Forums
B
11
S
5
G
2
Posts: 496
Reputation: 2,306


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 9 guests