How do I use dt for moving my object upwards

Get help using Construct 2

Post » Sat Apr 02, 2016 12:57 pm

Is there a way to use dt as a way to move my object upwards?

So:
touch[on any touch start] > sprite [ move dt pixels upwards]

Kind regards,

Niek, :?:
B
6
S
2
Posts: 114
Reputation: 874

Post » Sat Apr 02, 2016 1:24 pm

There are a bunch of ways you could probably do it. Might be easiest to install and use something like the easetween behaviour for this. But you could also do it by toggling a variable on and off eg if variable is true and sprite Y > 0 every tick Sprite set Y to Sprite.y -60 * dt - should get you started.
B
64
S
25
G
4
Posts: 204
Reputation: 6,993

Post » Sat Apr 02, 2016 1:26 pm

@signaljacker I will try, thanks for replying!
B
6
S
2
Posts: 114
Reputation: 874

Post » Sat Apr 02, 2016 1:41 pm

@signaljacker I tried but I can't figure it out, can you make a CAPX?

Thanks,

Niek
B
6
S
2
Posts: 114
Reputation: 874

Post » Sun Apr 03, 2016 1:10 am

@ Niek - try thishttps://www.dropbox.com/s/h4i04durr8aumq7/dt.capx?dl=0 - just substitute mouse controls with touch and adjust y position and dt speed to suit.
B
64
S
25
G
4
Posts: 204
Reputation: 6,993

Post » Sun Apr 03, 2016 7:51 am

@Signaljacker ok, I will try, thanks
B
6
S
2
Posts: 114
Reputation: 874


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 5 guests