Gamestudio Links
Zorro Links
Newest Posts
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
Change chart colours
by 7th_zorro. 05/11/24 09:25
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 1,225 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19056 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Rotate panels #131453
05/24/07 08:35
05/24/07 08:35
Joined: Mar 2007
Posts: 776
Poor village - Poland ;)
tompo Offline OP
User
tompo  Offline OP
User

Joined: Mar 2007
Posts: 776
Poor village - Poland ;)
Is it possible to rotate panels or panel's bmap?
If no... it should be
F.e. minimaps, radars, arrows, compasses...etc like in rts or racing games...
Will be graet to be able to rotate panle's bmap with player/camera pan.

I think that f.e. in racing games when we can see plan of the city (NFS, GTA) it's a window showing part of bmap which one is rotating with player, not a top view showing in 2D panel.

What You think? Or maybe is possible already? Then sorry for this post and give me example, please

Last edited by tompo; 05/24/07 08:51.

Never say never.
Re: Rotate panels [Re: tompo] #131454
05/24/07 10:54
05/24/07 10:54
Joined: Jan 2003
Posts: 4,615
Cambridge
Joey Offline
Expert
Joey  Offline
Expert

Joined: Jan 2003
Posts: 4,615
Cambridge
it is possible.

Re: Rotate panels [Re: Joey] #131455
05/24/07 11:16
05/24/07 11:16
Joined: Mar 2007
Posts: 776
Poor village - Poland ;)
tompo Offline OP
User
tompo  Offline OP
User

Joined: Mar 2007
Posts: 776
Poor village - Poland ;)
and...


Never say never.
Re: Rotate panels [Re: tompo] #131456
05/24/07 12:17
05/24/07 12:17
Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Xarthor Offline
Expert
Xarthor  Offline
Expert

Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Code:

panel.angle
Rotation angle for a counterclockwise rotation of the panel, in degrees.

Range:
0..360 (default: 0)

Type:
var

Remarks:
For displaying text or numbers, and for reacting on mouse events angle must be zero.
The rotation center can be set by center_x.
All panel elements, except for the Digits element, rotate with the panel.

Example:
PANEL* pan;
// rotate a panel about its center
function pan_rotate(p)
{
pan = p; // set the panel pointer from the function parameter
pan.center_x = pan.size_x * 0.5; // set the rotation center at the panel center
pan.center_y = pan.size_y * 0.5;
while (pan.angle < 360) // one full rotation
{
pan.angle += 10*time_step;
wait(1);
pan = p; // local variables are preserved during wait(), global pointers aren't
}
pan.angle = 0;
}


Source: The mighty manual.

Re: Rotate panels [Re: Xarthor] #131457
05/25/07 10:33
05/25/07 10:33
Joined: Oct 2005
Posts: 4,771
Bay City, MI
lostclimate Offline
Expert
lostclimate  Offline
Expert

Joined: Oct 2005
Posts: 4,771
Bay City, MI
hmmm is this new? i thought this was still in dev?

Re: Rotate panels [Re: lostclimate] #131458
05/25/07 11:45
05/25/07 11:45
Joined: Mar 2007
Posts: 776
Poor village - Poland ;)
tompo Offline OP
User
tompo  Offline OP
User

Joined: Mar 2007
Posts: 776
Poor village - Poland ;)
Sorry but:
"Parameter unknown Pan Parameter"
So maybe this is from A7 Beta or something?
Becouse I can't find such a things even in online help LINK

And easyer will be with f.e.
bmap_rotate(bmap_name, vector); or something like this
vector[2] - x,y coordinates of bmap, so You can choose center point of rotating

or just
bmap_name.pan and implicitly it'll be a center of bmap or showing window if any

Last edited by tompo; 05/25/07 12:02.

Never say never.
Re: Rotate panels [Re: tompo] #131459
05/25/07 12:51
05/25/07 12:51
Joined: Aug 2002
Posts: 3,258
Mainz
oliver2s Offline
Expert
oliver2s  Offline
Expert

Joined: Aug 2002
Posts: 3,258
Mainz
Xarthors code works fine for me with A6.6. Nice instruction

Re: Rotate panels [Re: oliver2s] #131460
05/25/07 13:04
05/25/07 13:04
Joined: Mar 2007
Posts: 776
Poor village - Poland ;)
tompo Offline OP
User
tompo  Offline OP
User

Joined: Mar 2007
Posts: 776
Poor village - Poland ;)
OK... my bad


Never say never.
Re: Rotate panels [Re: tompo] #131461
05/26/07 13:04
05/26/07 13:04
Joined: Jan 2003
Posts: 4,615
Cambridge
Joey Offline
Expert
Joey  Offline
Expert

Joined: Jan 2003
Posts: 4,615
Cambridge
yes, it's angle, not pan.


Moderated by  aztec, Spirit 

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