Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/05/23 14:22
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
2 registered members (3run, AndrewAMD), 667 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Using the Numpad "5" #414358
12/30/12 13:49
12/30/12 13:49
Joined: Nov 2012
Posts: 18
Germany
E
elevationmind Offline OP
Newbie
elevationmind  Offline OP
Newbie
E

Joined: Nov 2012
Posts: 18
Germany
Hallo,

I have the problem, that LIte-C doesn't seem to recognise the numpad as numbers - no matter if I have numlock on or of.

But I despreately need the numpad "5" to work for moving my player back.

How do I get this to work?

My action looks like this:

var distance = (key_slash-key_5)*9*time_step;

But it only works with the "normal" 5 on the keyboard.

I tryed adding to main/to action:

key_set(76,on_5);

To tell the numpad 5 (Scancode 76) to act like 5, but it just doesn't work.

Can somebody help me? How do I get the numpad 5 to work like the arrow down?

Thanks in advance!

Re: Using the Numpad "5" [Re: elevationmind] #414360
12/30/12 14:04
12/30/12 14:04
Joined: Nov 2012
Posts: 18
Germany
E
elevationmind Offline OP
Newbie
elevationmind  Offline OP
Newbie
E

Joined: Nov 2012
Posts: 18
Germany
Oh, I just solved my own problem with:

var distance = (key_slash-key_pressed(76))*9*time_step;

So I hope I could halp someone else with this:)!


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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