Babies love mazes.

A forum to share your demonstrations stacks, fun stacks, games, etc.
User avatar
richmond62
Posts: 4243
Joined: Sun Sep 12, 2021 11:03 am
Location: Bulgaria
Contact:

Re: Babies love mazes.

Post by richmond62 »

Now we need to set up a FINISH target for the maze.

So, please import this image into your stack:
-
target.png
target.png (3.3 KiB) Viewed 5147 times
-
Set its location, and rename it 'target'.
-
m42.png
m42.png (148.71 KiB) Viewed 5146 times
-
Remember to save your work.
https://richmondmathewson.owlstown.net/
User avatar
richmond62
Posts: 4243
Joined: Sun Sep 12, 2021 11:03 am
Location: Bulgaria
Contact:

Re: Babies love mazes.

Post by richmond62 »

Now we must input code to STOP our man going THROUGH the walls of our MAZE.

Remember we made all the bricks in our MAZE into a [b]GROUP[/b] called 'walls'.

Now we can use the INTERSECT term to check if our man is crossing walls:
-
m43.png
m43.png (157.62 KiB) Viewed 5145 times
-
You will see 'exit to top': this is to STOP any further code executing.

Now we can use INTERSECT again to check when our man hits the finish target.

But, to make things a bit more exciting please import the following image into your stack:
-
win.png
win.png (360.52 KiB) Viewed 5143 times
-
Change its name to 'win', and make it INVISIBLE:
-
m44.png
m44.png (297.2 KiB) Viewed 5139 times
-
Remember to save your work.
https://richmondmathewson.owlstown.net/
User avatar
richmond62
Posts: 4243
Joined: Sun Sep 12, 2021 11:03 am
Location: Bulgaria
Contact:

Re: Babies love mazes.

Post by richmond62 »

Now we can input code to check if our man has hit the target:
-
m45.png
m45.png (221.41 KiB) Viewed 5138 times
-
Now we need to put a bit more code in the RESET button so users can restart the game:
-
m46.png
m46.png (101.96 KiB) Viewed 5138 times
-
Remember to save your work.
https://richmondmathewson.owlstown.net/
User avatar
richmond62
Posts: 4243
Joined: Sun Sep 12, 2021 11:03 am
Location: Bulgaria
Contact:

Re: Babies love mazes.

Post by richmond62 »

Here is the completed exercise:
Attachments
MAZE.oxtstack.zip
(371.65 KiB) Downloaded 120 times
https://richmondmathewson.owlstown.net/
User avatar
richmond62
Posts: 4243
Joined: Sun Sep 12, 2021 11:03 am
Location: Bulgaria
Contact:

Re: Babies love mazes.

Post by richmond62 »

And here we are in action!
-
441619952_1897353044009801_1836406838943655124_n.jpg
441619952_1897353044009801_1836406838943655124_n.jpg (219.53 KiB) Viewed 5126 times
https://richmondmathewson.owlstown.net/
User avatar
richmond62
Posts: 4243
Joined: Sun Sep 12, 2021 11:03 am
Location: Bulgaria
Contact:

Re: Babies love mazes.

Post by richmond62 »

Luckily for me my 7 year old 'victim' gave me some useful feedback:

"When the man turns he doesn't turn, so I don't know where he's going."

So, here is an improved version that 'turns' the man:
-
SShot 2024-06-07 at 12.20.20.png
SShot 2024-06-07 at 12.20.20.png (13.94 KiB) Viewed 5112 times
-
SShot 2024-06-07 at 12.22.36.png
SShot 2024-06-07 at 12.22.36.png (120.12 KiB) Viewed 5112 times
-
Attachments
MAZE.oxtstack.zip
(392.63 KiB) Downloaded 115 times
https://richmondmathewson.owlstown.net/
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests