please help. when i use code to make something move with wasd it doesnt move. please help!
1 Like
Are you using the Alpha, or the Legacy editor?
1 Like
Maybe You Typed The Wrong Code Or Syntax
This Is JavaScript
Or Maybe You Used The test.wickeditor.com website or the legacy website and the website i previously mentioned is unstable. Reply @BabyPanda_4MC
1 Like
umm… just use this code and paste in into the key script of your choosing:
if (key === “d”)
this.x +=10; // move right
if (key === “a”)
this.x -=10; // move left
if (key === “w”)
this.y -=10; // move right
if (key === “s”)
this.y +=10; // move left
Keyboard Controls are best in Update(Timeline) and Key Down(Keyboard)
1 Like