Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, dr_panther), 821 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 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