This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.
  • Index
  •  » Project Ideas
  •  » Could someone make an example of a game for this man, please?

#1 2010-02-10 08:02:21

steppenwulf
Scratcher
Registered: 2009-07-23
Posts: 1000+

Could someone make an example of a game for this man, please?

Here's the deal. This man wants to create a maze game for his disabled child. He needs a formula that will choose one out of the ten random mazes to start the game. After you touch the goal at the end of each maze, it chooses another one out of the ten random mazes, without choosing the same one twice. If you finish the last maze, you'll be congradulated with an applause.

Trouble we're having right now, is actually creating a formula that will choose a random maze 10 times without choosing the same one twice. If anyone could create a sample game for him, that would be great.  big_smile



-Steppenwulf



EDIT: Please don't post something like:

"You can use this to choose a background"

<switch to costume[ <pick random( 1 )to( 10


It won't work for changing mazes each time you complete one.

Last edited by steppenwulf (2010-02-10 08:06:55)


I'm graduating HS this April and going to college in the Fall.

Offline

 

#2 2010-02-10 09:18:01

MyRedNeptune
Community Moderator
Registered: 2007-05-07
Posts: 1000+

Re: Could someone make an example of a game for this man, please?

maybe something like this:

http://i709.photobucket.com/albums/ww97/MyRedNeptune/scr.gif?t=1265811410


http://i52.tinypic.com/5es7t0.png I know what you're thinking! "Neptune! Get rid of those filthy advertisements and give us back the Zarathustra siggy, you horrible person!" Well, don't worry about it, the Zara siggy will be back soon, new and improved! ^^ Meanwhile, just do what the sig tells you to. >.>

Offline

 

#3 2010-02-10 09:23:11

Brass45
Scratcher
Registered: 2009-05-03
Posts: 500+

Re: Could someone make an example of a game for this man, please?

I posted on his topic.I thought he wants you to be able to move back to a previous room,so I made this demo for him.
http://scratch.mit.edu/projects/Brass45Test/881176
I'll work on the other project though.I'll remember to give MRN credit for the script.

Last edited by Brass45 (2010-02-10 09:38:14)


http://img412.imageshack.us/img412/4593/ubd1591.png<--Our website(click)
http://static.zooomr.com/images/8884671_b196719ffa_o.png<--If this image looks interesting,then click it to see an exclusive sneak peak of Evil Strings newest game:DarkLight

Offline

 

#4 2010-02-10 10:56:18

Brass45
Scratcher
Registered: 2009-05-03
Posts: 500+

Re: Could someone make an example of a game for this man, please?

Okay,I made the game!It only has three mazes,but it's very easy to edit!
http://scratch.mit.edu/projects/Brass45Test/881376

Last edited by Brass45 (2010-02-10 10:56:49)


http://img412.imageshack.us/img412/4593/ubd1591.png<--Our website(click)
http://static.zooomr.com/images/8884671_b196719ffa_o.png<--If this image looks interesting,then click it to see an exclusive sneak peak of Evil Strings newest game:DarkLight

Offline

 

#5 2010-02-10 11:48:34

MyRedNeptune
Community Moderator
Registered: 2007-05-07
Posts: 1000+

Re: Could someone make an example of a game for this man, please?

Sorry, there is an error in the script I posted earlier. Here is how it's supposed to look:

http://i709.photobucket.com/albums/ww97/MyRedNeptune/scr-1.gif?t=1265820454


http://i52.tinypic.com/5es7t0.png I know what you're thinking! "Neptune! Get rid of those filthy advertisements and give us back the Zarathustra siggy, you horrible person!" Well, don't worry about it, the Zara siggy will be back soon, new and improved! ^^ Meanwhile, just do what the sig tells you to. >.>

Offline

 

#6 2010-02-10 11:51:03

Brass45
Scratcher
Registered: 2009-05-03
Posts: 500+

Re: Could someone make an example of a game for this man, please?

MyRedNeptune wrote:

Sorry, there is an error in the script I posted earlier. Here is how it's supposed to look:

http://i709.photobucket.com/albums/ww97 … 1265820454

Oh,okay.I'll edit it now I guess.After I fix it though,I won't add on to it unless I get a request from that guy.


http://img412.imageshack.us/img412/4593/ubd1591.png<--Our website(click)
http://static.zooomr.com/images/8884671_b196719ffa_o.png<--If this image looks interesting,then click it to see an exclusive sneak peak of Evil Strings newest game:DarkLight

Offline

 

#7 2010-02-10 15:50:30

Ace-of-Spades
Scratcher
Registered: 2010-01-08
Posts: 1000+

Re: Could someone make an example of a game for this man, please?

This is wrong though. He'll have to reprogram it every time he plays (unless Lists don't work that way, I've never used one and possibly never will),

How about one where the maze keeps repeating an infinite amount of times, and there's a scoring system based on how fast you complete the maze x 100 / 2. A random of 10 different maps appears every time, and it selects a random color by setting the color effect to a random every new round (and having a white maze color). The portal also moves to a new part of the maze (the maze could have wider and skinnier path ways, and the bigger rooms can hold the portal) every time the player reaches it, and it also makes the clapping sound.

If there are 6+ bigger rooms in the map, all of them with a reachable path, and 10 different maps, not to mention a new color every time, there'll be at least 59 combinations of mazes (and the portal could stamp an inverted version of itself where the player touched it before it moves, and that'll be the new starting point for the player).


11110010100011010100011010101000100011011011001010111100101000110101000110101010001000110110110010101111001010001101010001101010100010001101101100101011110010100011010100011010101000100011011011001010
110101010010001010101010101010101010101010100110101010010101010010101001101011010101010010101010101

Offline

 

#8 2010-02-10 15:56:42

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: Could someone make an example of a game for this man, please?

This isn't the most perfect script but it should be fine for your purposes

when I receive (new maze)
Repeat Until ( not (newmaze = oldmaze)){
set newmaze to random from 1 to 10
}
set newmaze to oldmaze


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#9 2010-02-10 18:11:32

Brass45
Scratcher
Registered: 2009-05-03
Posts: 500+

Re: Could someone make an example of a game for this man, please?

Ace-of-Spades wrote:

This is wrong though. He'll have to reprogram it every time he plays (unless Lists don't work that way, I've never used one and possibly never will),

How about one where the maze keeps repeating an infinite amount of times, and there's a scoring system based on how fast you complete the maze x 100 / 2. A random of 10 different maps appears every time, and it selects a random color by setting the color effect to a random every new round (and having a white maze color). The portal also moves to a new part of the maze (the maze could have wider and skinnier path ways, and the bigger rooms can hold the portal) every time the player reaches it, and it also makes the clapping sound.

If there are 6+ bigger rooms in the map, all of them with a reachable path, and 10 different maps, not to mention a new color every time, there'll be at least 59 combinations of mazes (and the portal could stamp an inverted version of itself where the player touched it before it moves, and that'll be the new starting point for the player).

Well,the basic idea behind this is just to have 10-25 mazes so that the users child won't memorize the whole game quickly and then walk away.Also,your idea is impractical because if the portal went to a random place,what if it landed in an unreachable area?


http://img412.imageshack.us/img412/4593/ubd1591.png<--Our website(click)
http://static.zooomr.com/images/8884671_b196719ffa_o.png<--If this image looks interesting,then click it to see an exclusive sneak peak of Evil Strings newest game:DarkLight

Offline

 

#10 2010-02-10 18:30:20

Ace-of-Spades
Scratcher
Registered: 2010-01-08
Posts: 1000+

Re: Could someone make an example of a game for this man, please?

That's why there are x and y limits. If the portal moved every time there was a new level, it could turn around from the 'edges' of the maze. Also the maze could be the entire screen.


11110010100011010100011010101000100011011011001010111100101000110101000110101010001000110110110010101111001010001101010001101010100010001101101100101011110010100011010100011010101000100011011011001010
110101010010001010101010101010101010101010100110101010010101010010101001101011010101010010101010101

Offline

 

#11 2010-02-10 22:02:14

Brass45
Scratcher
Registered: 2009-05-03
Posts: 500+

Re: Could someone make an example of a game for this man, please?

Ace-of-Spades wrote:

That's why there are x and y limits. If the portal moved every time there was a new level, it could turn around from the 'edges' of the maze. Also the maze could be the entire screen.

I mean that if there was obstacles in the center and along the edges,and the obstacles were asymmetrical,then there would always be a possibility of it getting embeded in the obstacle.


http://img412.imageshack.us/img412/4593/ubd1591.png<--Our website(click)
http://static.zooomr.com/images/8884671_b196719ffa_o.png<--If this image looks interesting,then click it to see an exclusive sneak peak of Evil Strings newest game:DarkLight

Offline

 

#12 2010-02-10 22:59:19

MyRedNeptune
Community Moderator
Registered: 2007-05-07
Posts: 1000+

Re: Could someone make an example of a game for this man, please?

Ace-of-Spades wrote:

He'll have to reprogram it every time he plays

No. He will not.


http://i52.tinypic.com/5es7t0.png I know what you're thinking! "Neptune! Get rid of those filthy advertisements and give us back the Zarathustra siggy, you horrible person!" Well, don't worry about it, the Zara siggy will be back soon, new and improved! ^^ Meanwhile, just do what the sig tells you to. >.>

Offline

 
  • Index
  •  » Project Ideas
  •  » Could someone make an example of a game for this man, please?

Board footer