Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
3 registered members (AndrewAMD, juanex, Grant), 1,018 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
turning panels #274041
06/25/09 13:08
06/25/09 13:08
Joined: Mar 2009
Posts: 17
N
null Offline OP
Newbie
null  Offline OP
Newbie
N

Joined: Mar 2009
Posts: 17
hey

I wont turning a panel
how i can do that??


P.S:i dont wont use sprites and 3d objects

Re: turning panels [Re: null] #274044
06/25/09 13:14
06/25/09 13:14

M
mercuryus
Unregistered
mercuryus
Unregistered
M



you can't turn a panel but rotate it (0>panel.angle);

Re: turning panels [Re: ] #274094
06/25/09 16:57
06/25/09 16:57
Joined: Jul 2004
Posts: 1,710
MMike Offline
Serious User
MMike  Offline
Serious User

Joined: Jul 2004
Posts: 1,710
the turn could be done, with some tricks, 2 panels overlay, 1 has scale= 0 other scale =1;
then scale down , and the other when reach scale 0, scale up.. :s

Re: turning panels [Re: MMike] #274100
06/25/09 17:40
06/25/09 17:40
Joined: Aug 2008
Posts: 133
Sweden, Stockholm
E
Enduriel Offline
Member
Enduriel  Offline
Member
E

Joined: Aug 2008
Posts: 133
Sweden, Stockholm
Never tried but usually a negative scale gives a mirror image in most editing softwares, might work with panels aswell.

Re: turning panels [Re: Enduriel] #274268
06/26/09 10:44
06/26/09 10:44
Joined: Dec 2008
Posts: 528
Wagga, Australia
the_mehmaster Offline
User
the_mehmaster  Offline
User

Joined: Dec 2008
Posts: 528
Wagga, Australia
use the angle attribute i.e:
Code:
while(1)
{
    my_panel.angle += 1 * time_step; //rotate panel
    wait(1);
}


Note: the panel is rotated around the first pixel, not the centre of the panel.

Re: turning panels [Re: the_mehmaster] #274310
06/26/09 13:28
06/26/09 13:28
Joined: Mar 2009
Posts: 17
N
null Offline OP
Newbie
null  Offline OP
Newbie
N

Joined: Mar 2009
Posts: 17
yes thanks it works
and with center_x you can make the rotatedcentre

Re: turning panels [Re: null] #274335
06/26/09 14:18
06/26/09 14:18
Joined: May 2009
Posts: 258
Chicago
J
Jaeger Offline
Member
Jaeger  Offline
Member
J

Joined: May 2009
Posts: 258
Chicago
Yup. If for some reason you want to support custom resolutions, or have a variably sized panel, just make center_x and center_y = size_x or _y/2. smile


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