Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
3 registered members (TipmyPip, AndrewAMD, NewbieZorro), 16,055 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 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