Hi all,
I’ve decided to revisit my asteroidyish game that I was noodling around with a few months ago and see if I can make it worth releasing.
Anyway I have the following code that is called when the player ‘thrusts’…
if player.thrust then local vecX, vecY = angle2VecDeg( player.rotation-90 ) player:applyForce ( vecX, vecY, player.x, player.y ) end
The only problem is that if the player holds the thrust button down the ship will just keep accelerating way past the point where it’s playable. I’m going to implement a feature where the player can select from a number of ships to control which have differing weight, speed, fire power etc.
So what I’m wanting to know is if there is a way of putting a cap on the maximum speed the ship can move.
Hope this makes sense.
Cheers
Chris