Gamestudio Links
Zorro Links
Newest Posts
Zorro version 3.0 prerelease!
by TipmyPip. 02/24/26 08:49
ZorroGPT
by TipmyPip. 02/23/26 21:52
WFO Training with parallel cores Zorro64
by Martin_HH. 02/23/26 15:29
Camera always moves upwards?
by clonman. 02/21/26 09:29
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 02/19/26 13:22
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
5 registered members (Martin_HH, AndrewAMD, TipmyPip, qin, VoroneTZ), 5,300 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
alx, ApprenticeInMuc, PatrickH90, USER0328, Sfrdragon
19199 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 | 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