frame

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In Register

Player velocity not changing

i made a script that adds 1 to a number which outputs to x velocity but when i test the game the player's velocity doesnt change it's just 1 every time

Comments

  • Please leave a link, it will let me know what is wrong.
  • i fixed it and i have it set so that when it hits the wall it keeps the same speed going the other direction but actually when it hits the wall the speed resets to 0 https://flowlab.io/game/view/1422505
  • This is because velocity is not flipped. It stays with the coordinates of the game. To fix this, remove the coding for velocity, including the expression, and replace it with a motor set to 5 or 4.
Sign In or Register to comment.

flowlab.io

| make games in your browser
@ 2017 Flowlab.io, All rights reserved.

Contact us

Get In Touch