Gamestudio Links
Zorro Links
Newest Posts
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
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (degenerate_762, AbrahamR, AndrewAMD, ozgur), 667 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 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,210
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,210
İ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 | 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