Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
MT5 bridge not working on MT5 v. 5 build 4160
by EternallyCurious. 04/25/24 20:49
Trading Journey
by howardR. 04/24/24 20:04
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Scripts not found
by juergen_wue. 04/20/24 18:51
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (AndrewAMD, EternallyCurious, Petra, 1 invisible), 795 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mega_Rod, EternallyCurious, howardR, 11honza11, ccorrea
19048 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
..redefining the keys in the template #121744
04/06/07 06:52
04/06/07 06:52
Joined: Apr 2006
Posts: 76
Philippines
AdrianX Offline OP
Junior Member
AdrianX  Offline OP
Junior Member

Joined: Apr 2006
Posts: 76
Philippines
..im pretty sure that this was asked before,but how can i redefine the keys in the a5 templates?i want it so that i should press the W,S,A,D keys when moving instead of the arrow keys.thank you.

Re: ..redefining the keys in the template [Re: AdrianX] #121745
04/06/07 23:53
04/06/07 23:53
Joined: Mar 2005
Posts: 725
USA
TeutonicDarkness Offline
User
TeutonicDarkness  Offline
User

Joined: Mar 2005
Posts: 725
USA
Quote:

..im pretty sure that this was asked before,but how can i redefine the keys in the a5 templates?i want it so that i should press the W,S,A,D keys when moving instead of the arrow keys.thank you.





The answer lies in input.wdl

though this may not be the best way but it works
took me 2 minutes...

look for function player intentions:


modify like this:

Code:
  
// Set the cartesian forces according to the player intentions
//force.X = strength.X*(KEY_FORCE.Y+JOY_FORCE.Y); // forward/back
force.X = strength.X*(KEY_w-KEY_s+JOY_FORCE.Y);







This just uses the W and the S key for forward and back
but surely you can manage the A and D key..



Also there is a script somehere that lets you and end-user
define all keys...

I'll look for it if you like; though
it is most likely A A5 engine script and the syntax
would be a little different.



let me know....

Re: ..redefining the keys in the template [Re: TeutonicDarkness] #121746
04/07/07 04:10
04/07/07 04:10
Joined: Apr 2006
Posts: 76
Philippines
AdrianX Offline OP
Junior Member
AdrianX  Offline OP
Junior Member

Joined: Apr 2006
Posts: 76
Philippines
..hmmm..i think this should work fine.
..its been a while since ive done anything with 3dgs,but now that im back,expect to see questions like this a lot more often now.
..thank you!


Moderated by  HeelX 

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