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
1 registered members (Grant), 999 guests, and 2 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
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 | 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