|
Minimap like in any MMORPG or RPG
#391489
01/13/12 06:40
01/13/12 06:40
|
Joined: Apr 2008
Posts: 144 Germany | Niedersachsen (Lower...
Roxas
OP
Member
|
OP
Member
Joined: Apr 2008
Posts: 144
Germany | Niedersachsen (Lower...
|
Hey there, it has been a while I think everyone knows what I mean. A simple circular minimap showing the current environment and some icons of interesting places. An example: I ran into the problem that 3d gamestudio doesn't seem to support circular windows on panels. My question is, how do I achieve something like that? I want a circular cut-out of a rectangle map image on screen which moves accordingly to my character. I'm not asking for the math equation, but if you answer this question accidentally I won't complain =) Does anyone have any ideas? Panels and Windows, alpha transparency, shaders, anything? Thanks for your replies in advance and Cheers Dekurian
|
|
|
Re: Minimap like in any MMORPG or RPG
[Re: Roxas]
#391491
01/13/12 07:30
01/13/12 07:30
|
Joined: Sep 2003
Posts: 6,861 Kiel (Germany)
Superku
Senior Expert
|
Senior Expert
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
|
You could use a circular view entity and render a panel with a window element into its skin (bmap_for_entity, panel.target_map). Then iterate over all entites, calculate their 2D/ xy-distance to the center of the minimap in world coordinates and use draw_bmap to draw the entity icons.
EDIT: Ninja'd...
Last edited by Superku; 01/13/12 07:30.
"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual Check out my new game: Pogostuck: Rage With Your Friends
|
|
|
Re: Minimap like in any MMORPG or RPG
[Re: Superku]
#391653
01/14/12 15:59
01/14/12 15:59
|
Joined: Aug 2008
Posts: 36 California USA
tunisod
Newbie
|
Newbie
Joined: Aug 2008
Posts: 36
California USA
|
Also Check out AUM 95 under questions and answers. George gives an example.
Last edited by tunisod; 01/14/12 15:59.
|
|
|
|