ScratchData LogoScratchData
Back to Doctor_Llama's profile

Slope Detection

DODoctor_Llama•Created February 9, 2018
Slope Detection
38
28
1444 views
View on Scratch

Description

Something that has bothered me about the platforming script commonly used on Scratch is that it has a problem detecting slopes. I made a new script that can turn horizontal velocity into vertical velocity when it encounters a slope, and vice versa. The green square (controlled with arrow keys) has the script with improved slope detection, and the red square (controlled with WASD) has a script similar to many seen on Scratch. Try comparing how they go up slopes and what happens when they jump under the square. Can you get to the top right corner? I made the ceiling slope detection just to see what it looks like, and it although it works, it also looks fine without it. All coding by me

Project Details

Project ID203033960
CreatedFebruary 9, 2018
Last ModifiedFebruary 10, 2018
SharedFebruary 9, 2018
Visibilityvisible
CommentsAllowed