The math behind Construct 2's default behaviors.

Get help using Construct 2

Post » Fri Aug 11, 2017 7:16 pm

I've been working with Construct 2 for the past few years, and I've been blending maniuplating the X and Y positions of objects alongside using the built-in behaviors. However, I've noticed that the behaviors' speeds and accelerations are not done in pixels, but another value which I'd like to understand more about so I can manipulate and work with them more precisely.

What constitutes for a single pixel in terms of the platform/eight direction behavior? What's the math behind it that determines the rate of movement?
B
30
S
14
G
6
Posts: 29
Reputation: 5,507

Post » Fri Aug 11, 2017 8:22 pm

The speeds are in pixels per second. So if the speed is 100 the number of pixels moved in a frame is 100*dt.

Accelerations are similar. If an acceleration of 1500 is used the speed will change by 1500*dt in a frame.
B
94
S
33
G
113
Posts: 5,354
Reputation: 73,269


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 11 guests