I really like this idea, and I think it's a cool way to implement it. I suspect the "API" for this may be a bit uphill for younger kids (who might prefer the sprites with built-in physics, like the Friction Marble, Jetpack girl, etc.).
Like the real world, lots of projects use physics; this project includes a library to help you add physics to any scratch project.
The physicsLib sprite contains all of the physics handling code. Variables are passed into functions by setting the variable "physicsLib_INPUT_x/y" and results are returned in "physicsLib_OUTPUT_x/y". The basic functionality can be seen in the demoCat sprite's code.
Feel free to add new functionality and share your physicsLib library as a new version!
Comments
You need to be logged in to post comments
Add a Comment
I really like this idea, and I think it's a cool way to implement it. I suspect the "API" for this may be a bit uphill for younger kids (who might prefer the sprites with built-in physics, like the Friction Marble, Jetpack girl, etc.).