Gamestudio Links
Zorro Links
Newest Posts
Purchase A8 full licence version
by ukgamer. 04/29/26 18:09
Z9 getting Error 058
by k_ivan. 04/25/26 19:13
ZorroGPT
by TipmyPip. 04/25/26 16:09
Stooq now requires an API key
by jcl. 04/13/26 09:42
Strange "Alien" Skull created with >Knubber<
by NeoDumont. 04/10/26 18:58
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
0 registered members (), 4,296 guests, and 26 spiders.
Key: Admin, Global Mod, Mod
Newest Members
ukgamer, valino, juergenwue, VladMak, Geir
19210 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
pan rotating #133073
06/01/07 18:30
06/01/07 18:30
Joined: Apr 2005
Posts: 2,332
Germany, BaWü
aztec Offline OP

Expert
aztec  Offline OP

Expert

Joined: Apr 2005
Posts: 2,332
Germany, BaWü
is it possible to rotate a pan
if so could someone please explain it to me?
Regards
Aztec


Visit:
schwenkschuster-design.de
Re: pan rotating [Re: aztec] #133074
06/01/07 18:41
06/01/07 18:41
Joined: Mar 2007
Posts: 776
Poor village - Poland ;)
tompo Offline
User
tompo  Offline
User

Joined: Mar 2007
Posts: 776
Poor village - Poland ;)
This is what Xarthor answered to the same mine question
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;
}




Never say never.
Re: pan rotating [Re: tompo] #133075
06/01/07 18:42
06/01/07 18:42
Joined: Apr 2005
Posts: 2,332
Germany, BaWü
aztec Offline OP

Expert
aztec  Offline OP

Expert

Joined: Apr 2005
Posts: 2,332
Germany, BaWü
cool thank you tompo


Visit:
schwenkschuster-design.de

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