YouGroove Posted April 25, 2014 Share Posted April 25, 2014 When pressing directly "S" in the game to make object run backwards it runs forward even with force displayed as negative in screen. How to test : Download map Attach script plane.lua to the little blue rectangle Run the game and press "S" key bug.zip Quote Stop toying and make games Link to comment Share on other sites More sharing options...
AggrorJorn Posted April 25, 2014 Share Posted April 25, 2014 you are adding a minus before a value that is already a minus value. self.entity:AddForce(0,0,-self.forceSpeed ,false) so you are saying: - -30, which results in + 30. Just remove the minus to solve it. 2 Quote Link to comment Share on other sites More sharing options...
YouGroove Posted April 26, 2014 Author Share Posted April 26, 2014 Thread can be closed Quote Stop toying and make games Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.