like how do you like make a player walk in keyboard contorl like when it walks it plays the walk cylce
This might be what you need:
if(isKeyDown('right')){ // If the right key is down
project.Player.play(); // Play the players timeline
}
Let me know if this isn’t what you were asking for, or if u need help with anything
idk how can you send me a file
can you send file
hanzoh will come eventually, could be between a few minutes and tomorrow. we all have stuff to do, it just takes some patience. I’m sure you’ll get an answer.
Also, try to understand what he already provide to you and try… that is the best way to learn.
Here’s a file with an example, it’s not exactly the same as Hamzah’s but it’s a similar idea:
keydownAnim.wick (5.2 KB)
(And please try not to spam posts next time)
can you put all contotls
I’m not sure what controls you want. You mean up/down/left movement, to match the right movement? I think you should at least try it yourself first. Here’s what you’re starting with:
if(key===“right”){
this.x+=10;
}
You only need to change certain parts of the code to get up/down/left movements. Increase x to move right, decrease x to move left. Increase y to go down, decrease y to move up…give it a try. This tells you more about x and y:
i want left up down
and send file
send file towmorow
Please at least try to do it yourself first. If you get stuck, you can post your file and I can look at it. But please try first, you can’t get better at programming by just using other’s people’s code. All of the answers you need are in that link I just posted.
i do that too
Apologies for leaving, here’s an example file, hope it helps:
My Project11-14-2020_9-34-24AM.wick (6.3 KB)
its not working
Did you change the word, “Player
,” with the name of your player?
um can you make among us movements
it would be faster if you made simple stuff yourself, but i’ll give you a summary.
if(press right) {
go right
} else if(press left) {
go left
}
if(press up) {
go up
} else if(press down) {
go down
}