Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
5 registered members (Dico, AndrewAMD, TipmyPip, NewbieZorro, Grant), 15,791 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
a simple functio n but... #71293
04/18/06 14:19
04/18/06 14:19
Joined: Oct 2003
Posts: 246
A
Alberto Offline OP
Member
Alberto  Offline OP
Member
A

Joined: Oct 2003
Posts: 246
Hello

I tried to implement the following functio.
I found a couple of solutions but I am not happy
May be someone can help me

the function is

Rotate_Player(angle,speed)

angle is the relative angle the player must rotate
speed is the ratational speed

for example Rotate_Player(30,5)

the player must rotate 30 degree on his right at 5 rotational speed

Thanks in advance

Re: a simple function but... [Re: Alberto] #71294
04/18/06 14:56
04/18/06 14:56

A
Anonymous
Unregistered
Anonymous
Unregistered
A



Do you mean something like this?

Code:

...
var pan_new;
pan_new = player.pan+30;

while(player.pan < pan_new)
{
c_rotate (player, vector(5*time,0,0), IGNORE_YOU);
wait(1);
}
...



Last edited by Morpheus; 04/18/06 14:58.
Re: a simple function but... [Re: ] #71295
04/21/06 17:48
04/21/06 17:48
Joined: Oct 2003
Posts: 246
A
Alberto Offline OP
Member
Alberto  Offline OP
Member
A

Joined: Oct 2003
Posts: 246
so simple ,so good


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