Attempt fix script
This commit is contained in:
@@ -71,17 +71,17 @@ async function disconnect() {
|
|||||||
let Playerposx = 500;
|
let Playerposx = 500;
|
||||||
let Playerposy = 300;
|
let Playerposy = 300;
|
||||||
|
|
||||||
if (booleanArray) {
|
|
||||||
if (booleanArray[1]) {
|
|
||||||
Playerposx += 1;}
|
|
||||||
if (booleanArray[3]) {
|
|
||||||
Playerposx -= 1;}
|
|
||||||
if (booleanArray[0]) {
|
|
||||||
Playerposy += 1;}
|
|
||||||
if (booleanArray[2]) {
|
|
||||||
Playerposy -= 1;}
|
|
||||||
|
|
||||||
}
|
if (booleanArray[1]) {
|
||||||
|
Playerposx += 1;}
|
||||||
|
if (booleanArray[3]) {
|
||||||
|
Playerposx -= 1;}
|
||||||
|
if (booleanArray[0]) {
|
||||||
|
Playerposy += 1;}
|
||||||
|
if (booleanArray[2]) {
|
||||||
|
Playerposy -= 1;}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// the function setup() is called once when the page is loaded
|
// the function setup() is called once when the page is loaded
|
||||||
function setup(){
|
function setup(){
|
||||||
|
Reference in New Issue
Block a user