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
2 registered members (AndrewAMD, juanex), 1,247 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19056 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
rotate right? #237575
11/20/08 19:25
11/20/08 19:25
Joined: Nov 2005
Posts: 1,007
jigalypuff Offline OP
Serious User
jigalypuff  Offline OP
Serious User

Joined: Nov 2005
Posts: 1,007
How do i get the code below to open a door to the right and not the left?

Code:
action rotating_door
{
       while (player == null) {wait (1);}
       while (vec_dist (player.x, my.x) > 100) {wait (1);} // play with 100
       ///snd_play (dooropens_wav, 100, 0);
       while (my.pan > -140)
       {
               c_rotate (me, vector(-4 * time_step, 0, 0), IGNORE_MAPS);
               wait (1);
       }
}



Why does everyone like dolphins? Never trust a species which smiles all the time!
Re: rotate right? [Re: jigalypuff] #237589
11/20/08 20:26
11/20/08 20:26
Joined: Jul 2007
Posts: 959
nl
F
flits Offline
User
flits  Offline
User
F

Joined: Jul 2007
Posts: 959
nl
Code:
action rotating_door
{
       while (player == null) {wait (1);}
       while (vec_dist (player.x, my.x) > 100) {wait (1);} // play with 100
       ///snd_play (dooropens_wav, 100, 0);
       while (my.pan < 140)
       {
               c_rotate (me, vector(4 * time_step, 0, 0), IGNORE_MAPS);
               wait (1);
       }
}


didnt test it


"empty"
Re: rotate right? [Re: flits] #237592
11/20/08 20:34
11/20/08 20:34
Joined: Nov 2005
Posts: 1,007
jigalypuff Offline OP
Serious User
jigalypuff  Offline OP
Serious User

Joined: Nov 2005
Posts: 1,007
works perfect mate thank you


Why does everyone like dolphins? Never trust a species which smiles all the time!

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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