Microsoft MakeCode

Friction in physics

We’ve added friction in the beta (https://arcade.makecode.com/beta). Try it out!

screengrab

2 Likes

Nice!

I’d like to build a tight platformer, which feels something like “Super Meat Boy” or “Celeste”. A good start would be ground and air friction, plus an acceleration curve before reaching max speed. Would it be possible to use this new friction block to help achieve that? If so, what might the code look like?

The new friction physics kick in when the sprite has velocity and no acceleration. It linearly decreases the speed based on the friction value.