How do I mix Drag&Drop with Physics

Get help using Construct 2

Post » Fri Mar 14, 2014 9:42 am

Hi again!

I use Physics and Drag&Drop. When i drag an object everythings cool. But while holding the object and stop moving my finger/mouse, the object falls down! Drag only works while moving. Is that correct or should it be fixed?

Greetings
Kevin
B
2
Posts: 3
Reputation: 156

Post » Fri Mar 14, 2014 9:50 am

Essentially.. Mixing Physics with any behaviors is a bad idea. Sometimes it may work, but the results are usually _not_ good.

(edit .. had a drastic typo) .. Sorry.
Last edited by Joannak on Fri Mar 14, 2014 12:06 pm, edited 1 time in total.
Need help? Upload .capx file with your question.
B
16
S
4
G
2
Posts: 233
Reputation: 2,560

Post » Fri Mar 14, 2014 10:18 am

I solved the physics problem using "set position to" instead of Drag&Drop feature. Its ok i think.
B
2
Posts: 3
Reputation: 156

Post » Fri Mar 14, 2014 11:22 am

When doing this, it's a good practice to know when, exactly, you are picking things up, and have it always turn off the physics behavior while dragging, but back on while not. It seems to work for me more often than not, and I do it with multiple behaviors.
B
27
S
7
G
6
Posts: 267
Reputation: 3,850


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 22 guests