Top down racer

I’m working on a top down racer and I need help to move the car and have it rotate with the arrow keys.

For moving the sprite, try using the “move sprite with buttons” block in the controller category! You can set the speed if you press the “+” button on the block.

How many directions do you want the car to be animated in? Four (up down left right) or eight (up down left right and the diagonals)?

If it’s just four, you should try using the arcade-character-animations extension: https://github.com/microsoft/arcade-character-animations

Here’s an example program:

1 Like

If you want to do eight directions, I recommend checking out @jwunderl’s scaling extension: https://github.com/jwunderl/pxt-scaling

That extension has a block for rotating an existing sprite, though it’s a little bit trickier to use.

1 Like

thanks, @richard for the help but for now I think I’ll use this https://makecode.com/_UYDVxrWCC0wk