Skip to content
Sign UpLog In
This post is read-only. Explore Repls and connect with other creators on Community.View Community
The info in this post might be out of date, check out our docs instead. View docs
2

How do you make a player move?

MatthewX
MatthewX

How do you make a player move in html and javascript? I want the player to take small steps everytime u press wasd. Also how do i add an element like an image to a list in html and javascript? And how do you make a small window like canvas in html that pops up when you click a button?

2 years ago
You are viewing a single comment. View All
1
SixBeeps
SixBeeps

@MatthewX
I answered the list question in #2.
If you want to make an element smaller, can specify it's width and height in CSS:

#smallDisplay { width: 128px; height: 64px; /* These values are not concrete, play around with them. */ }
2 years ago