ScratchData LogoScratchData
Back to _nix's profile

CONTROLS (glitchy wall fix)

_N_nix•Created October 21, 2021
CONTROLS (glitchy wall fix)
2
1
20 views
View on Scratch

Description

Thanks to @Arthur_code for the original project! This is a simple remix which keeps the player from getting stuck on walls and the ceiling. The hitbox sprite now has three detector costumes: "hitbox horiz", for horizontal wall detection, "vert" for floor/ceiling, and "edge" for the actual edge area of the screen (sprite Detector2). The "vert" costume is used in the Up/Down custom block. It's thinner on the left and right edges, and that means it (usually) won't accidentally bump into walls. After all, we only care about detecting the floor and ceiling when determining vertical movement, so there's no reason to allow for detecting walls. The "horiz" costume uses the same idea, with the top/bottom edges shorter; it's made not to detect the floor or ceiling, so the player's horizontal movement won't be frozen when touching a ceiling. They'll just slide across instead! It's still not 100% glitchless movement, but this fixes the most glaring bug, and hopefully makes it so anyone can put more focus on the controls changing than moving in very particular manners to avoid running into glitches!

Project Details

Project ID587363562
CreatedOctober 21, 2021
Last ModifiedOctober 21, 2021
SharedOctober 21, 2021
Visibilityvisible
CommentsAllowed

Remix Information

Parent ProjectView Parent
Root ProjectView Root