Hey wonderful people!
So, I've been trying to set up a basing steering behaviour in Construct 3. The issue that I'm having is that Construct does not seem to have the ability to work with vectors.
How can I use the tools that Construct gives me, and most likely some math, to replicate the results of using vectors.
For instance using vectors and some variables for max speed and acceleration I could create a "seek" behaviour like this:
player = X,Y, 0
target = X,Y, 100
player.maxSpeed = 100
player.steer = 5
1. desiredVelocity (a vector) = normalize(target X,Y - player X,Y) * player.maxSpeed
2. steeringForce (a vector) = desiredVelocity - player's CurrentVelocity (vector), limit (the magnitude of) steeringForce to player.steerForce
3. newVelocity = player's currentVelocity + steeringForce, limit newVelocity to player.maxSpeed
This would create a simpel seeking behaviour where the player would smoothly follow the target.
How can I use the tools that Construct provides me to achieve the same sort of thing?
R0J0hound Your posts have helped me many times in the past. Do you have any sage advice on this?
Thanks!