Prevent putting sprites on top of other

Get help using Construct 2

Post » Sun Feb 12, 2012 11:42 pm

Hello,

I am using event to move objects with finger/mouse. All objects have behavior "Bound to layout" and it's really nice that all objects cannot be moved outside of game. But when I move objects I can put one object on the top of other. How to prevent this?

There is a file to edit: http://terademix.com/move.capx

Example:

Thanks!
B
7
Posts: 36
Reputation: 628

Post » Mon Feb 13, 2012 12:03 am

Last edited by Yann on Sun Sep 14, 2014 12:31 pm, edited 1 time in total.
B
60
S
22
G
14
Posts: 1,479
Reputation: 16,346

Post » Mon Feb 13, 2012 12:17 am

2 events only ^^Kyatric2012-02-13 00:17:46
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,999
Reputation: 57,793

Post » Mon Feb 13, 2012 12:19 am

didn't know drag&drop behavior worked on touch devices... nice (:
B
60
S
22
G
14
Posts: 1,479
Reputation: 16,346

Post » Mon Feb 13, 2012 3:35 am

Thanks, it's working well.

Actually in my game I have around 8 moving objects, all of them are different sizes and shapes. How can I do the same with 8 completely different objects?
B
7
Posts: 36
Reputation: 628

Post » Mon Feb 13, 2012 5:47 am

Using families, or not using 8 objects, but instances of a single object, displaying a different animation frame each.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,999
Reputation: 57,793

Post » Mon Feb 13, 2012 1:47 pm

Awesome thanks for the quick help here. I can see this becoming one for the FAQ.
B
16
S
2
G
4
Posts: 67
Reputation: 3,295


Return to How do I....?

Who is online

Users browsing this forum: Baidu [Spider], chcteacher, Televangelist and 26 guests