Gamestudio Links
Zorro Links
Newest Posts
Executing Trades on Next Bar Open
by Zheka. 06/20/24 14:26
Lapsa's very own thread
by rki. 06/19/24 11:27
A simple game ...
by VoroneTZ. 06/18/24 10:50
Face player all the time ...
by bbn1982. 06/18/24 10:25
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 1,262 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mino, squik, AemStones, LucasJoshua, Baklazhan
19061 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: Minimap [Re: Scorpion] #112100
02/02/08 05:49
02/02/08 05:49
Joined: Sep 2007
Posts: 158
Guangzhou China
bomber Offline
Member
bomber  Offline
Member

Joined: Sep 2007
Posts: 158
Guangzhou China
like this???
///////////////////////////////
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
{
while(1)
{panel_player_dot000.pos_x = panel_minimap00.pos_x + minimap_size.x * (guard_mdl_2754.x/(level_width[0]-level_width[1]));
panel_player_dot000.pos_y = panel_minimap00.pos_y + minimap_size.y * (guard_mdl_2754.y/(level_height[0]-level_height[1]));

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] #112101
02/02/08 09:18
02/02/08 09:18
Joined: Jan 2007
Posts: 1,619
Germany
Scorpion Offline
Serious User
Scorpion  Offline
Serious User

Joined: Jan 2007
Posts: 1,619
Germany
I guess it should work now, but I really don't have the time to test it myself

Re: Minimap [Re: Scorpion] #112102
02/02/08 12:00
02/02/08 12:00
Joined: Sep 2007
Posts: 158
Guangzhou China
bomber Offline
Member
bomber  Offline
Member

Joined: Sep 2007
Posts: 158
Guangzhou China
...well it doesn't


"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: Scorpion] #112103
02/06/08 19:04
02/06/08 19:04
Joined: Feb 2008
Posts: 337
V
Vadim647 Offline
Senior Member
Vadim647  Offline
Senior Member
V

Joined: Feb 2008
Posts: 337
You know, you all are saying great things, but reality is another:
(I'm making an economical strategy game, so I spend several hours finding, how)
--------
Code:
VECTOR mapsize;//Don't forget to set it in Main

function md_unit(var dx,var dy,VECTOR* fcol)
{ draw_line(vector(dx+1,dy,0),NULL,100);draw_line(vector(dx+1,dy,0),fcol,100);
draw_line(vector(dx,dy+1,0),fcol,100);draw_line(vector(dx-1,dy,0),fcol,100);
draw_line(vector(dx,dy-1,0),fcol,100);draw_line(vector(dx+1,dy,0),fcol,100);}
PANEL* minimap =
{
bmap = "p_map.tga";//at last, you can use a black square
}
...
ACTION unit
{
...
while is(my.FLAG1) //or 'While I'm alive'
{
...
md_unit(minimap.pos_x+my.x/mapsize.x*minimap.size_x,minimap.pos_y+my.y/mapsize.y*minimap.size_y,vector(96,96,224));
wait(1);
}
...
function main()
{
...
vec_set(mapsize.x,vector(2048,2048,0))
...
}


Maybe there must be for function for drawing a bitmap, but there isn't. So be happy to make anything by colored lines.
-------
Send me a reply if you know how to make a function for drawing a bitmaps.


I switched to other account since marth 2010. Guess which.
Page 2 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