Gamestudio Links
Zorro Links
Newest Posts
Removing outliers from files
by jcl. 11/04/26 10:30
[MED] Import from FBX (2010) missing!!!
by rayp. 11/03/26 14:33
What are you working on?
by rayp. 11/02/26 13:57
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
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
3 registered members (Quad, TipmyPip, mistery), 9,740 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
MaliceTheMaker, Haitao_Ren, JimSimons, julienp, julienper
19248 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
crouch mode #303789
01/02/10 02:51
01/02/10 02:51
Joined: Jun 2009
Posts: 258
behind this enternet window
zeusk Offline OP
Member
zeusk  Offline OP
Member

Joined: Jun 2009
Posts: 258
behind this enternet window
hey guys im having problems with a stealth action project im working on, and i was wondering is it possible to make a player be able to hold a key down to crouch and walk at the same time.And if so how would i do that? I have no idea how i could do this.Im not asking for you to write me some code, but it'll be great if someone could give me a general idea of what to do next. Thanks wink

Re: crouch mode [Re: zeusk] #303790
01/02/10 03:04
01/02/10 03:04
Joined: Oct 2007
Posts: 5,211
İstanbul, Turkey
Quad Online
Senior Expert
Quad  Online
Senior Expert

Joined: Oct 2007
Posts: 5,211
İstanbul, Turkey
while(key_name){
//do something.
}

it will do as long as the key pressed.

or if you alreay have a while(1)..wait(1) loop

just add

if(key_name){
//do something
}

it will do it.

it is no diffrent than walking forward actually
it walks only when you press and hold W(or whatever your key is or how ever you programmed it)


3333333333
Re: crouch mode [Re: Quad] #303791
01/02/10 03:12
01/02/10 03:12
Joined: Jun 2009
Posts: 258
behind this enternet window
zeusk Offline OP
Member
zeusk  Offline OP
Member

Joined: Jun 2009
Posts: 258
behind this enternet window
It sounds simple now that im looking at it.Thx


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