rgshrey's hardest game but the bug is actually fixed. And it's much simpler than his solution. The bug made it so the player could phase out of the boundaries by moving diagonally into a corner. rgshrey's solution was very complicated, and while it prevented skipping from the start to the end, still allowed phasing through walls by pressing 3 keys. My previous solution was to simply prevent diagonal movement. This new solution is simple, works, and doesn't cost a downgrade in mobility. What I did was resolve the walls into 4 "collision masks." "right," "left," "bottom," and "toy." Wait, I meant top. Each player sprite detects if it is touching each collision mask from its respective direction. The player will only move in a direction if the key is pressed AND it's NOT touching the collision mask in that direction (e.g. moves right only if d is pressed AND NOT touching right collision mask.) -JH
rgshrey, if wondering what's up with the weird sound effects, the other CSE teacher might know something. (Also check out how many views your most popular project has) Untitled-19: https://scratch.mit.edu/projects/834824509/ My previous solution: The second hardest game to World's Hardest Game https://scratch.mit.edu/projects/630042413/ Also, play Valence (But don't edit the code or drag sprites or it will trigger the anti-piracy.): https://scratch.mit.edu/projects/907652154/