Discuss Scratch

Lightstar670
Scratcher
28 posts

How do I make a maze?

I'm making a maze and Idk how

Last edited by Lightstar670 (April 26, 2014 12:55:10)

levtey
Scratcher
100+ posts

How do I make a maze?

You go to this maze generator and download as an SVG. Then, you upload the maze onto Scratch and create code:
whenclickedforeverifkeyup arrowpressed?thenchangeybyasmallnumberiftouchingcolorwall color?thenchangeyby-samesmallnumberifkeyright arrowpressed?thenchangexbythesamesmallnumberiftouchingcolorwall color?thenchangexby-thesamenumber
The concept is to cancel out the action you just made if you moved into a wall. But don't make the x or y change too large, though. This sometimes lets the sprite get through the wall. You will also make a winning color at the end.
whenclickedforeveriftouchingcolorwin color?thensayYou win!for4secsstopall
You can also check out my maze game here.
levtey
Scratcher
100+ posts

How do I make a maze?

Lightstar670 wrote:

I'm making a quiz and Idk how
Wait are you making a quiz or a maze?
Lightstar670
Scratcher
28 posts

How do I make a maze?

levtey wrote:

Lightstar670 wrote:

I'm making a quiz and Idk how
Wait are you making a quiz or a maze?

OMG LOL I'm so sorry! XD I meant maze XD Thx.

Powered by DjangoBB