Gamestudio Links
Zorro Links
Newest Posts
Executing Trades on Next Bar Open
by vicknick. 06/13/24 08:51
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (Joey, flink, AndrewAMD), 1,226 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19059 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
Minimap #112090
02/15/07 21:16
02/15/07 21:16
Joined: Jun 2006
Posts: 32
giedje Offline OP
Newbie
giedje  Offline OP
Newbie

Joined: Jun 2006
Posts: 32
hey,

how can i make a minimap in 3dgs??

Giedje


Re: Minimap [Re: giedje] #112091
02/15/07 21:43
02/15/07 21:43
Joined: Mar 2006
Posts: 752
Portugal
demiGod Offline
User
demiGod  Offline
User

Joined: Mar 2006
Posts: 752
Portugal
Using the search button. I found 119 results even in user contributions.

Re: Minimap [Re: giedje] #112092
02/15/07 21:48
02/15/07 21:48
Joined: Jan 2007
Posts: 1,619
Germany
Scorpion Offline
Serious User
Scorpion  Offline
Serious User

Joined: Jan 2007
Posts: 1,619
Germany
if you want to show the whole level you need the level border coordination ( as example -200,200,-200,200)
and then the position of the entities you want to show on the minimap

if the size of the minimap is 100x100

set a panel to the right position:

var level_width[2]=200,-200;
var level_height[2]=200,-200;
var minimap_size[2]=100,100;
entity* entity_pointer;

[...]

panel_e1.pos_x = minimap_pan.pos_x + minimap_size.x * (entity_pointer.x/(level_width[1]-level_width[2]));
panel_e1.pos_y = minimap_pan.pos_y + minimap_size.y * (entity_pointer.y/(level_height[1]-level_height[2]));

Re: Minimap [Re: Scorpion] #112093
02/16/07 13:16
02/16/07 13:16
Joined: Jun 2006
Posts: 32
giedje Offline OP
Newbie
giedje  Offline OP
Newbie

Joined: Jun 2006
Posts: 32
is there a tutorial about this in 3dgs?


Re: Minimap [Re: giedje] #112094
02/16/07 14:01
02/16/07 14:01
Joined: Jul 2006
Posts: 783
London, UK
sheefo Offline
User
sheefo  Offline
User

Joined: Jul 2006
Posts: 783
London, UK
Just make a view, place it in the corner of the screen and place the views point above the level so you can see the entire level. Simple.

There is a minimap script in one of the early AUM magazine issues.

Re: Minimap [Re: sheefo] #112095
02/01/08 05:09
02/01/08 05:09
Joined: Sep 2007
Posts: 158
Guangzhou China
bomber Offline
Member
bomber  Offline
Member

Joined: Sep 2007
Posts: 158
Guangzhou China
thanks!


"I don't know what the facts are but somebody's certainly going to sit down with him and find out what he knows that they may not know, and make sure he knows what they know that he may not know."
覧覧Donald Rumfeld
Re: Minimap [Re: bomber] #112096
02/01/08 07:34
02/01/08 07:34
Joined: Sep 2007
Posts: 158
Guangzhou China
bomber Offline
Member
bomber  Offline
Member

Joined: Sep 2007
Posts: 158
Guangzhou China
can't make it work,please help the dot still stays at 0,0
///////////////////////////////
bmap bmap_minimap001="er.bmp";
bmap bmap_player_dot="player_dot.bmp";
var level_width[2]=1600,-1600;
var level_height[2]=1600,-1600;
var minimap_size[2]=256,256;
entity* guard_mdl_2754;
panel panel_minimap00
{
bmap = bmap_minimap001;
pos_x = 0;
pos_y = 0;
;

flags = refresh,visible;
alpha = 100;
layer=3;
}
panel panel_player_dot000
{
bmap = bmap_player_dot;
pos_x = 0;
pos_y = 0;

flags = refresh,visible;
alpha = 100;
layer=4;
}

function minimap
{

panel_player_dot000.pos_x = panel_minimap00.pos_x + minimap_size.x * (guard_mdl_2754.x/(level_width[1]-level_width[2]));
panel_player_dot000.pos_y = panel_minimap00.pos_y + minimap_size.y * (guard_mdl_2754.y/(level_height[1]-level_height[2]));

panel_player_dot000.visible=on;
panel_minimap00.visible=on;

}


"I don't know what the facts are but somebody's certainly going to sit down with him and find out what he knows that they may not know, and make sure he knows what they know that he may not know."
覧覧Donald Rumfeld
Re: Minimap [Re: bomber] #112097
02/01/08 10:48
02/01/08 10:48
Joined: Jan 2007
Posts: 1,619
Germany
Scorpion Offline
Serious User
Scorpion  Offline
Serious User

Joined: Jan 2007
Posts: 1,619
Germany
this should work if you call the function minimap in a while loop.

Re: Minimap [Re: Scorpion] #112098
02/01/08 11:03
02/01/08 11:03
Joined: Sep 2007
Posts: 158
Guangzhou China
bomber Offline
Member
bomber  Offline
Member

Joined: Sep 2007
Posts: 158
Guangzhou China
I called it in main()before,and now I use a while loop and still doesn't work

Last edited by bomber; 02/01/08 11:14.

"I don't know what the facts are but somebody's certainly going to sit down with him and find out what he knows that they may not know, and make sure he knows what they know that he may not know."
覧覧Donald Rumfeld
Re: Minimap [Re: bomber] #112099
02/01/08 13:47
02/01/08 13:47
Joined: Jan 2007
Posts: 1,619
Germany
Scorpion Offline
Serious User
Scorpion  Offline
Serious User

Joined: Jan 2007
Posts: 1,619
Germany
i think i got the mistake i made...the indexes are 1 and 2, but they should be 0 and 1

Page 1 of 2 1 2

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1