Hey guys!
I got this idea like a month ago or so. I worked
VERYYYYYY hard making it to work.. AND NOW IT'S WORKING!!
I Haven't see anyone using this,so I might as well sharing it with you all.
COMMENT AT THE END PLZ THANK YOU XDYES, a mini map.
I'll give you guys my game(and map) as an example.
Mini-maps are used in World Maps(well..mostly) take ff7/ff8 as an example.
I'm no drawer, but a good drawer(artist if you prefer)
What Do We Want?
Ok. Now What. So Much To Do! OMFG.!!!!1 OK Seriously.
My Map is 500 x 500.what i did is, each 25x, there's a ''dot''
(see picture 1,2,3) that will move left-right.
each 25y,it will move up and down
(see 1,2,3 again)now.. Where does it move?
for a basic(or beta) mini-world map, go in,let's say..Paint! Ahhh, good ol' paint!
now..how do we proceed?
How Do We Draw It?
Like I said. Paint. i said my mini-world map is 500x500 and my scale is each 25x and 25y,it'll move. make the equation. 500/20 and 500/20 = 20 20. so our basic grid will be 20x20. Simply draw a 20x20 grid. i recommand tou use the square paint-brush to make it really straight.
or check out picture 4Settup For The Coding?
Common event for sure.first of all. question yourself. Do i want an item that will allow me to have a mini-world map,or not? In my game,i decided that i wanted one.
So it'll start like this:
Common event,Parallel Process. of course you want a new switch. name it world map i guess.
Since(assuming) you decided to have an item to get it. it'll go like this:
- if (item you decided) is possessed then(with a yes/no)
if yes then:
-Key input*the key here*
-if(new variable) = [value of your key] then:
-label 1
-show picture 1(the world map grid you've done)
now, you have to define your X and Y cord!
for whoever that doesn't know, create 2 variables. let's call them Hero X and Hero Y.
do X like this
(or refer to picture 5)Hero X
Set Equal
Sprite: Hero(X Coordinate)
so Y is(DUH)
Hero Y
Set Equal
Sprite: Hero(Y Coordinate)
once theese two variables are created,let's go back to our coding
- if (item you decided) is possessed then(with a yes/no)
if yes then:
-Key input*the key here*
-if(new variable) = [value of your key] then:
-label 1
-show picture 1(the world map grid you've done)
-var. opr: hero x set x coord
-var. opr: hero y set y coord
TRICKY/BORING PART!!!
like i said before. each 25 steps x and/or y = 1 square of our grid.
so let's do it that way:
(p.s for all the cond. branches upcoming, there's NO <else handler>)
refer to picture 6-Branch if var hero x is less/equal 25 then
-Branch if var hero x is 0 or more then
-Branch if var hero y is less/equal 25 then
-Branch if var hero y is 0 or more then
ok with theese 4 branches,you got your first ''square'' done. GOOD! 399 LEFT!!
what you want to get next,is your coord into the first ''square'' of your grid.
or
refer to picture 7-show picture 2
-erase picture 2
wait(between 1 and 3 tenth of second would be the best)
-show picture 3
-erase picture 3
wait(between 1 and 3 tenth of second would be the best)
-show picture 4
-erase picture 4
wait(between 1 and 3 tenth of second would be the best)
your wait ''must'' be the same value though.
the coord of theese 3 pictures has to be in the first square of your mini-map(test/error it..it might take a while haha)
ok now you're REALLY done with the first square. congrats. and still 399 left =(
so far you got this:
- if (item you decided) is possessed then(with a yes/no)
if yes then:
-Key input*the key here*
-if(new variable) = [value of your key] then:
-label 1
-show picture 1(the world map grid you've done)
-var. opr: hero x set x coord
-var. opr: hero y set y coord
-Branch if var hero x is less/equal 25 then
-Branch if var hero x is 0 or more then
-Branch if var hero y is less/equal 25 then
-Branch if var hero y is 0 or more then
-show picture 2
-erase picture 2
wait(between 1 and 3 tenth of second would be the best)
-show picture 3
-erase picture 3
wait(between 1 and 3 tenth of second would be the best)
-show picture 4
-erase picture 4
wait(between 1 and 3 tenth of second would be the best)
since i said you were done with the first block(that represent the top-left of your grid) it's time to move with the second one.
now,you want the second block,which means under the one you just did. remember its still each 25 it'll change, right?
you have to continue the code,beeing into the 2 ''X'' branches.
Do this:
-Branch if var hero y is less/equal 50 then
-Branch if var hero y is 26 or more then
-show picture 2
-erase picture 2
wait(between 1 and 3 tenth of second would be the best)
-show picture 3
-erase picture 3
wait(between 1 and 3 tenth of second would be the best)
-show picture 4
-erase picture 4
wait(between 1 and 3 tenth of second would be the best)
----remember to change your picture 2,3,4 coordinates so they fit into the 2nd block----
why is this the second block? because you're still IN the first 2 ''X'' branches!!
so you keep going this way with the Y's:
100 and 76
125 and 101
150 and 126
175 and 151
blablabla till you reach 500.(wow, lot of work isn't?)
now that you reached 500, you're crying of happyness. 19 more columns to go!!Yayy!!
you exit the 0-25 X Branches. You create 2.
(refer to picture 7 )if hero x less/equal 50 then
if hero x 26 or more then
and you start over with the Y's the same method as you did for the first 2 X's branches
once you reach 500 with the x and the y. CONGRATS YOU'RE DONE!!(unless you did typo everywhere haha!!)
i STRONGLY recommand to put comments at the end of each column so you don't get lost too easily
(refer to picture 7 )end it with a :
if var is equal to[value of key] then
jump label 1
ELSE
erase picture 1(the grid)
(refer to picture 8 )now that you're TOTALLY done.
you can do this extra,if you're a good drawer.
''draw'' the overall of your world map,stick the picture into your mini world map.
delete the grid after. THERE.YOU.GO!
so i think that's it for now. credit me or not..i don't really care haha.
sorry for my english I know it's not THAT good I'm mainly french haha but oh well.
if you guys have any questions, just add me on msn/send me a mail: luv_gyalz@hotmail.com
i'll take the occasion to make a publicity for my game XD.
CHECK OUT THIS LINK IT'S MY GAME xD!!
yes, i'm still looking for people =(
http://rmrk.net/index.php/topic,18131.0.htmlthere's also an example of a completed mini-world map there.