|The subject of this article or section has changed dramatically and requires updating. Some information or images may not be accurate or relevant to the current version of Scratch, the Scratch website, or the article subject. (December 2019)|
Specifically: Script does not seem to work
|Please expand this article or section. You can help by talk page. (May 2014)if you are an editor. More information might be found in a section of the|
A platforming base or a platformer engine is a project that is designed so users can easily create their own platformer games by remixing it or backpacking using the scripts. It usually consists of items like: sprites with the required scripts to perform movement, velocity, gravity, jumping, a level setup, and possibly more. Some platformer bases include a built-in level editor.
To use a base, simply remix the project. Most bases are easy to edit, so one can customize the characters, levels, and physics. As with all remixes, one is expected to give credit to the person whose base was used.
Here is a sample script for platforming.
First, make these two variables:
Then, insert this script. This can be edited to fit the project being worked on.
when green flag clicked forever if <key [left arrow v] pressed> then change [VelocityX v] by (-1) end if <key [right arrow v] pressed> then change [VelocityX v] by (1) end if <touching color [#006B54]> then change y by ((VelocityY)*(-1)) set [VelocityY v] to  if <key [up arrow v] pressed> then change [VelocityY v] by (12) end end set [VelocityX v] to ((VelocityX) * (0.9)) change x by (VelocityX) if <touching color [#006B54]> then change x by ((VelocityX)*(-1)) end change y by (VelocityY) change [VelocityY v] by (-1) end
Other Reasons to Make One
Some platforming bases are used for the purpose of experimenting with new physics, scripts, gameplay mechanics, or sensing.
Below are some examples of platform bases: