Gamestudio Links
Zorro Links
Newest Posts
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
3 registered members (AndrewAMD, Akow, 1 invisible), 1,417 guests, and 12 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19055 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Any such possibilities? #350562
12/17/10 02:28
12/17/10 02:28
Joined: Sep 2010
Posts: 67
FutureRaptor Offline OP
Junior Member
FutureRaptor  Offline OP
Junior Member

Joined: Sep 2010
Posts: 67
I have looked for a long time for an option such as key_released but have seen nothing in 3DGS. How can I make something happen when a key is released???
PLS HELP!

Re: Any such possibilities? [Re: FutureRaptor] #350578
12/17/10 09:02
12/17/10 09:02
Joined: Aug 2007
Posts: 1,922
Schweiz
Widi Offline
Serious User
Widi  Offline
Serious User

Joined: Aug 2007
Posts: 1,922
Schweiz
while (key_a) wait(1);

This wait till you release the key a

Re: Any such possibilities? [Re: Widi] #350670
12/18/10 03:17
12/18/10 03:17
Joined: Sep 2010
Posts: 67
FutureRaptor Offline OP
Junior Member
FutureRaptor  Offline OP
Junior Member

Joined: Sep 2010
Posts: 67
so for example if I want my plane to tilt to 0 (my.tilt=0;) once the player lets go of key_a how can I make that happen. I know its easy but I just cant get to find the right stop for the part.

Re: Any such possibilities? [Re: FutureRaptor] #350690
12/18/10 10:35
12/18/10 10:35
Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
Pappenheimer Offline
Senior Expert
Pappenheimer  Offline
Senior Expert

Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
Try something like this:

if(key_a)
{
while(key_a){wait(1);}
vec_lerp(my.pan, vector(my.pan, 0, my.roll), my.pan, 0.1);
}


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