Gamestudio Links
Zorro Links
Newest Posts
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 1,459 guests, and 9 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19058 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