Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-3

code not working? [closed]

Asked by 10 years ago

im in gamemaker studio and my character movement code not working it does not move

var l = keyboard_check(ord("A"));
var r = keyboard_check(ord("D"));
var u = keyboard_check_direct(vk_space);

if (l) {
    x -= 5;
}

if (r) {
    x += 5;
}

if (u) {
    y -= 5;
}

Closed as off-topic by AmericanStripes

This question has been closed by our community as being off-topic from ROBLOX Lua Scripting.

Why was this question closed?