On drag or drop go out of layer

Get help using Construct 2

Post » Wed Sep 25, 2013 9:35 pm

Hi guys, i need your help. I've some items that fall down from the top of the layer and i want them to go out of layout if they have been dragged or dropped.

Let me explain better:

when i drag an item for 1 sec or so or i drop it i want it to move out smoothly.

all objects have physics and i tried to apply foce equal to the layoutWidth on the X and layoutHeight on the Y the problem is that if i click they go out, if i drag/drop for some seconds they rotate on themself and stay in position. You have any better idea on how to do that? Thanks a lot.
B
5
Posts: 22
Reputation: 344

Post » Thu Sep 26, 2013 1:11 pm

Up!
B
5
Posts: 22
Reputation: 344

Post » Thu Sep 26, 2013 1:18 pm

You could add the bullet behavior and shoot them out of the layout.
Just set if you drag them the angle right and set speed.

After that make a condition:
if ball = outside of Layout
destroy ball
B
15
S
6
G
6
Posts: 512
Reputation: 5,555


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 10 guests