ScratchData LogoScratchData
Back to danielhal's profile

Colour-Coded Physics Engine

DAdanielhal•Created May 30, 2017
Colour-Coded Physics Engine
2
3
118 views
View on Scratch

Instructions

This is a colour-coded physics engine you can use when you're making a platformer. Control it with WASD (S doesn't actually do anything). Yellow is a wall facing left, purple is a wall facing right, green is a floor, pink is a roof. You do need to use the precise colours, not every shade of them will work (though you can just edit the code to use the colours you want them to). It has a death feature when you touch the bottom of the screen which can read from a list of spawn points that you can set yourself. You'll have to add some kind of level clear feature if you are going to use this though, because currently it's just set to stay on one backdrop. Feel free to replace the player sprite, just make sure the new one has an updated hitbox costume. All of the code is on the sprite, so this will work in any project you drop it in.

Description

I made everything in this project. Feel free to use this in your own platformer, just be sure to credit me. I'll be using this to make a few levels of my own soon, so keep an eye out! Feel free to link any projects you use this in down in the comments, I'd love to see what you do with it and it's a great chance to advertise :P

Project Details

Project ID163739202
CreatedMay 30, 2017
Last ModifiedNovember 30, 2017
SharedMay 30, 2017
Visibilityvisible
CommentsAllowed