ScratchData LogoScratchData
Back to mariogeek's profile

[WIP] Perfect Plat-former

MAmariogeek•Created October 31, 2013
[WIP] Perfect Plat-former
0
0
92 views
View on Scratch

Instructions

arrow keys- move/jump/ground pound-ish up arrow- Jump/Climb (climb when touching wall) down arrow- Move down faster (ground pound?) Try "ground pounding" down the hole, and climbing back up Cannot go up slants. Yet. You can replace the red cube with any sprite and it works.

Description

This works by not actually touching any green. Usually in a normal plat-former, there is a script that tests if it is touching green. If it is, it goes up one. If it isn't, it goes down 1. This tends to make a very jittery appearance, and it is not very pleasant. I put a block right into the move block, and if it is touching green, it moves back. (not just not do anything) This means that the player is never actually touching green, and it is not jittery. Using this, I have a script that moves the player down 2, tests if it is touching green, sets the variable "touch_down" to 1 or 0, and moves the player up 2. I have one of these scripts for every direction, and I can detect if the player is touching a wall or not. (You can show this by showing the variables that start with "touch".) I think this is pretty cool.

Project Details

Project ID13798960
CreatedOctober 31, 2013
Last ModifiedNovember 3, 2013
SharedNovember 1, 2013
Visibilityvisible
CommentsAllowed