#movement doesn't work?

1 messages · Page 1 of 1 (latest)

vapid mauve
#

So... Is this all of your movement code?

jade sapphire
#

yeah

#

i don't need to actively controll it yet but when i click f6 it doesn't do anything

vapid mauve
#

It's just a random number, you'd need to put something like
var gravity = ProjectSettings.get_setting("physics/2d/default_gravity")
to grab the default gravity setting from Godot.

jade sapphire
#

ok so the gravity variable doesn't give an error message anymore but the variable for velocity still does give an error message.

vapid mauve
jade sapphire
#

ok so i just removed the var velocity and it doesn't give me an error message anymore, but when i click f6 it doesn't show me the the square, it just shows a gray screen.

jade sapphire
#

yes

vapid mauve
#

Hold on two seconds.

vapid mauve
jade sapphire
#

wait just to be sure what code did you use

vapid mauve
jade sapphire
#

ok so we used the same code but it still doesn't work for me

#

this is the scene i used

vapid mauve
jade sapphire
#

it still doesn't work for me, it just shows a gray screen

#

nevermind i placed the cube to much to the left it works now