Mini-map issue

Talk about making games.

Mini-map issue

Postby NUTINC » Mon Jan 25, 2010 7:22 am

Hey guys. I'm currently working on a space travel game, and I need a little minimap in the corner to show where a ship is on another part of the screen. It would be much smaller than the main player screen though, and meant more to tell the player how close they are to spaceports. Any ideas? I've been fiddling around with canvas actors, but not getting anything :oops:
To those of you out there, I am not dead. I am a ghost! There is a difference!
Currently Working on: Parts, A self-assembling adventure
User avatar
NUTINC
 
Posts: 98
Joined: Fri Feb 09, 2007 1:06 am
Location: Lost in the deep dark recesses of my mind, wondering why the exit sign leads to brick wall
Score: 6 Give a positive score

Re: Mini-map issue

Postby skydereign » Mon Jan 25, 2010 7:53 am

Well how specific does it have to be? Can it be just a radar type screen? Also, how many ships and ports should be displayed on the screen? Canvas would definitely be my first choice. Not sure your level layout, but for showing other ships and places, you can place them on the canvas by getting their xy positions in relation to your main actor, and use that to place the markers on the minimap. The center of the canvas should be your main actor's xy equivalent. Also since it should be much smaller than the real xy coordinates, you would need to reduce those when placing the marks. Again if the levels are just open space this would work, but if you have obstacles you want, then it depends on how you set everything up. I can make a ged example if you give some more information.
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: Mini-map issue

Postby NUTINC » Mon Jan 25, 2010 3:41 pm

It won't be so much a zooming out of the playing field, but showing a small detailed minimap off to the side. The gameplay itself will be much like galaga or other shooters where the player is generally stationary. The small map that I am needing will be a cutout view of an entirely different area of the game, where there will be a map and a pointer to show the location of the player.
Attachments
map.JPG
What the picture is cut-away to.
combat screen.JPG
A cut-together picture of what the player should see
To those of you out there, I am not dead. I am a ghost! There is a difference!
Currently Working on: Parts, A self-assembling adventure
User avatar
NUTINC
 
Posts: 98
Joined: Fri Feb 09, 2007 1:06 am
Location: Lost in the deep dark recesses of my mind, wondering why the exit sign leads to brick wall
Score: 6 Give a positive score

Re: Mini-map issue

Postby Scorpion50o1 » Wed Jan 27, 2010 3:46 am

This wouldnt be my first idea or best but could you use collision events? OR
when you use keys like left for ship lets say x=x-5; then on the minimap make a player and make key down event for left x=x-1; maybe that'll work. (Tweak it some)
OMG IM SO BORED <(^^)> (>^^)> (>^^)>
92% of teens have moved on to rap. If you are part of the 8% who still listen to real music, copy and paste this into your signature.
User avatar
Scorpion50o1
 
Posts: 246
Joined: Fri Apr 17, 2009 1:07 am
Location: TX
Score: 8 Give a positive score

Re: Mini-map issue

Postby NUTINC » Wed Jan 27, 2010 3:54 am

Here is the .ged you requested, Sky.
Attachments
map test.zip
(79.72 KiB) Downloaded 122 times
To those of you out there, I am not dead. I am a ghost! There is a difference!
Currently Working on: Parts, A self-assembling adventure
User avatar
NUTINC
 
Posts: 98
Joined: Fri Feb 09, 2007 1:06 am
Location: Lost in the deep dark recesses of my mind, wondering why the exit sign leads to brick wall
Score: 6 Give a positive score

Re: Mini-map issue

Postby Scorpion50o1 » Wed Jan 27, 2010 4:15 am

nutinc you think my idea for your mini-map would work?
OMG IM SO BORED <(^^)> (>^^)> (>^^)>
92% of teens have moved on to rap. If you are part of the 8% who still listen to real music, copy and paste this into your signature.
User avatar
Scorpion50o1
 
Posts: 246
Joined: Fri Apr 17, 2009 1:07 am
Location: TX
Score: 8 Give a positive score

Re: Mini-map issue

Postby NUTINC » Wed Jan 27, 2010 6:35 am

Scorpion50o1 wrote:nutinc you think my idea for your mini-map would work?

After a talk with Sky, I'm gonna attempt your idea Scorpion. I'll work on it and show a demo when its ready (has to have the map travelling system done first before he can show anything)
To those of you out there, I am not dead. I am a ghost! There is a difference!
Currently Working on: Parts, A self-assembling adventure
User avatar
NUTINC
 
Posts: 98
Joined: Fri Feb 09, 2007 1:06 am
Location: Lost in the deep dark recesses of my mind, wondering why the exit sign leads to brick wall
Score: 6 Give a positive score

Re: Mini-map issue

Postby skydereign » Thu Jan 28, 2010 6:01 am

Well, here is what I interpreted what you were asking for. I think this is about right, the code is pretty simple, but the math is kind of weird do to the xy coordinate system of the canvas.
Attachments
map test.zip
(71.4 KiB) Downloaded 135 times
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: Mini-map issue

Postby NUTINC » Fri Jan 29, 2010 2:06 am

Thanks Scorp and Sky! This is exactly what I was looking for!
To those of you out there, I am not dead. I am a ghost! There is a difference!
Currently Working on: Parts, A self-assembling adventure
User avatar
NUTINC
 
Posts: 98
Joined: Fri Feb 09, 2007 1:06 am
Location: Lost in the deep dark recesses of my mind, wondering why the exit sign leads to brick wall
Score: 6 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest