Discuss Scratch

OriginalPerson
Scratcher
19 posts

Creating A Random Map generator (Top Down)

I am in the process of making a randomly generated top down game, its a maze and will have enemies and * which i can do but the problem is making the map actually make itself, i have the concept of cloning and changing the position above, below, side to side but it does not work and i would like some help. I can give a more detailed explanation if you can help and here is the game:
https://scratch.mit.edu/projects/105666521/#editor
OriginalPerson
Scratcher
19 posts

Creating A Random Map generator (Top Down)

I could really use some help
footsocktoe
Scratcher
1000+ posts

Creating A Random Map generator (Top Down)

OriginalPerson wrote:

I am in the process of making a randomly generated top down game, its a maze and will have enemies and * which i can do but the problem is making the map actually make itself, i have the concept of cloning and changing the position above, below, side to side but it does not work and i would like some help. I can give a more detailed explanation if you can help and here is the game:
https://scratch.mit.edu/projects/105666521/#editor


That project is not shared.

If you put “maze” in the search box you will see all kinds of projects and tutorials about maze games and how to generate a random maze.
RickCall12
Scratcher
100+ posts

Creating A Random Map generator (Top Down)

LeoTKA
Scratcher
3 posts

Creating A Random Map generator (Top Down)

The closest thing I can think of is changing the pixelate by a random number.

Last edited by LeoTKA (April 16, 2016 02:26:31)

frenchfrie92
Scratcher
4 posts

Creating A Random Map generator (Top Down)

You can make a bunch of costumes for the maze, then make a variable called “maze chance costumes”. Then, when green flag clicked, set maze chance costumes to: pick random 1-10, or how many costumes for the maze you have. Then, you can say if “maze chance costumes” equals 2, switch costume to maze 2 or something like that. That way, every time you press the green flag, the costume switches from costume 1-10, and if you make a lot more, then the costumes will rarely be the same.
ArioTubeYT
Scratcher
3 posts

Creating A Random Map generator (Top Down)

Here is an amazing idea on how to do it.simply make different maps or pieces of land and for example if player reaches a place that map is picked randomly.here is the code
when green flag clicked
forever
if <> then
(x position)<[] = []>
switch costume to [(pick random () to (10)) v]
end
end

Last edited by ArioTubeYT (June 9, 2020 09:41:05)

ArioTubeYT
Scratcher
3 posts

Creating A Random Map generator (Top Down)

Here is an amazing idea on how to do it.simply make different maps or pieces of land and for example if player reaches a place that map is picked randomly.here is the code
when green flag clicked
forever
if <> then
(x position)<[1
switch costume to [(pick random () to (10)) v]
end
end
ArioTubeYT
Scratcher
3 posts

Creating A Random Map generator (Top Down)

Here is an amazing idea on how to do it.simply make different maps or pieces of land and for example if player reaches a place that map is picked randomly.here is the code
when green flag clicked
forever
if <> then
(x position)<[1
switch costume to [(pick random (1) to (10)) v]
end
end
gamemaker8392939393
Scratcher
12 posts

Creating A Random Map generator (Top Down)

 put this in your play button
when green flag clicked
if <touching [mouse pointer v] ?> then
broadcast [ touched v]

end
when I receive [touched v]
switch backdrop to [Backdrop name here v]

Last edited by gamemaker8392939393 (Oct. 25, 2020 00:55:46)

Powered by DjangoBB