Why my place.x -= 5 not working?
At this part
if(moveKey.right.pressed) {
finishPostion += 5
platforms.forEach((platform) => {
platform.place.x -= 5
})
decors.forEach((decor) => {
decor.place.x -= 5;
})
} The line decors.forEach((decor) => { decor.place.x -= 5; })
is not working. I checked the whole code but couldn't find any issues. I use npm to start a local host server on this code
} The line decors.forEach((decor) => { decor.place.x -= 5; })
is not working. I checked the whole code but couldn't find any issues. I use npm to start a local host server on this code
2 Replies
define "not working"
This is plain-old browser JavaScript. Not Deno?