Discuss Scratch

lightning258
Scratcher
11 posts

How to crate a maze?

I wanted to do a maze in my project.I did it after refering to a few examples.But…It was not working.So I have shared my project with the title “ the tricky maze”. Please see it and tell me why it is not working.I appreciate any help.
Thanks.
GadgetAndyMan
Scratcher
100+ posts

How to crate a maze?

Hello lightning258 and welcome

The problem was you have a space before the word Yes in the following
if <(movement) = [Yes]> then

end

Last edited by GadgetAndyMan (Dec. 3, 2013 07:43:42)


Latest project updated: X-Y Coordinates Challenge - 14 Jan 2014: Various improvements.

My Likes Studios [ Animation | Art | Education | Games | Simulation | Stories ]
Please take a look and follow any studios that interest you with the projects I am adding.
lightning258
Scratcher
11 posts

How to crate a maze?

Thanks a lot.
karmanhof
Scratcher
41 posts

How to crate a maze?

Hi,

You can also look here: http://scratch.mit.edu/projects/13394709/ where I made a script to draw a random maze that you must solve. You can even place the target yourselve.
lightning258
Scratcher
11 posts

How to crate a maze?

Thanks a lot, karmanhof. I am a very young person and I am a newbie scratcher.When I saw your script , I could not understand it. Well…Can you explain how you did it.step by step. I am sorry if fulfilling this request takes a lot of time.

Last edited by lightning258 (Dec. 4, 2013 08:55:53)

karmanhof
Scratcher
41 posts

How to crate a maze?

Hi lightning258,
Start_1 draws the maze. During the drawing, it stores some points in the lists punten_x and punten_y.
Punt_1 travels around with costume (not visible!!) uiterlijk1. this costume has a red square that Always points in the travel direction. The red colour detects when it hits the wall or a part of the maze. It tries to turn to find a way. If there is no option, a new point from the list is taken.
Punt_2 is used to travel the maze that is just built.

I hope this helps.

Powered by DjangoBB