Discuss Scratch

maxysack
Scratcher
9 posts

The Mouse Maze

Does anyone know how to make a script for a section of my horror game to have that one maze game where the mouse cant hit the walls or you get jump scared? I suck at coding..
countrypink54
Scratcher
1 post

The Mouse Maze

Is the wall one color? If so you can use this code (using black as example)

whenclickedforeveriftouchingcolor?thenbroadcastjumpscare

If not you can make the maze a sprite instead of a backdrop and use this code:

whenclickedforeveriftouchingmaze?thenbroadcastjumpscare


Hope this helps!
PigPagPog
Scratcher
4 posts

The Mouse Maze

First add some code: (You might wanna make the maze a sprite)

whenclickedforeveriftouchingmaze?thenbroadcastyour jumpscare

Then you can make a new sprite called “Jumpscare”. Add some code:

whenclickedhide

whenIreceiveyour jumpscaresetsizeto100%switchcostumetothe costume with the image of your jumpscareshow

Hope it helps!

Last edited by PigPagPog (May 22, 2024 01:53:09)

maxysack
Scratcher
9 posts

The Mouse Maze

Thank you countrypink54! it worked!

Powered by DjangoBB