Gamestudio Links
Zorro Links
Newest Posts
No connection to MT4
by JeyKey II. 10/29/26 09:34
Zorro plugin for Hyperliquid.xyz
by opm. 10/28/26 13:50
Icon "OP"
by JeyKey II. 10/27/26 07:03
ZorroGPT
by TipmyPip. 10/26/26 08:09
Chat Room for Zorro Programmers
by Haitao_Ren. 10/25/26 03:14
Trading Journey
by Haitao_Ren. 10/25/26 03:14
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
4 registered members (Akow, TipmyPip, EW_bytes, MaliceTheMaker), 13,859 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
MaliceTheMaker, Haitao_Ren, JimSimons, julienp, julienper
19248 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 | 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