DenoDDeno
Powered by
antonyA
Denoβ€’3y agoβ€’
2 replies
antony

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
full_code.txt5.66KB
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,934Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Why JSX is not working ?
NestarZNNestarZ / help
3y ago
How to debug why an island is working locally but not working when deployed?
karfauKkarfau / help
4y ago
Upgrade Not Working
CodeFastCCodeFast / help
7mo ago