grid based puzzle overlapping sprites.

Get help using Construct 2

Post » Sat Apr 21, 2018 3:42 pm

hello. i'm making 16*16 grid base puzzle game.

I'm using [set position to round(Mouse.X/16)*16, round(Mouse.Y/16)*16] for grid.

and

sprites On Dragdrop drop
---sprites is overlapping other sprites.
-------sprites is not overlapping other sprites at offset (16,0) set position to round((self.X+16)/16)*16, round(Mouse.Y/16)*16
-------else1...
-------else2
-------else3

to prevent overlapping sprites.

but if sprites overlapping exactly from center, it just do nothing.

I don't know how to sprites not overlap each other in any circumstances.

is there any good way?

thank you.
B
7
S
1
Posts: 17
Reputation: 411

Post » Sun Apr 22, 2018 3:09 am

Try checking for overlapping at a different offset - 15 or less.
B
19
S
9
G
158
Posts: 2,384
Reputation: 84,395


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 15 guests