How do I trow stuff

Get help using Construct 2

Post » Fri Jul 10, 2015 2:51 pm

Hello, i want to trow a tomato but if i use the drag and drop behavior it stops directly if at drop it... but i want it to fly a little bit forwards.. anyone? :?:
B
6
S
2
Posts: 114
Reputation: 874

Post » Fri Jul 10, 2015 3:29 pm

I achieved this by giving physics to the object, on drag checking the X and Y, and on drop checking the X and Y, calculating the distance and time, hence getting the speed, and adding speed to the object based on those numbers. :)
B
37
S
11
G
6
Posts: 962
Reputation: 11,259

Post » Fri Jul 10, 2015 3:40 pm

Rory wrote:I achieved this by giving physics to the object, on drag checking the X and Y, and on drop checking the X and Y, calculating the distance and time, hence getting the speed, and adding speed to the object based on those numbers. :)
THNX!
B
6
S
2
Posts: 114
Reputation: 874


Return to How do I....?

Who is online

Users browsing this forum: Bobbyneal100, brunopalermo, mickclarke, tinhofiel and 34 guests