Gamestudio Links
Zorro Links
Newest Posts
NOMAX undeclared identifier.
by Petra. 01/09/26 21:12
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 01/07/26 15:14
Zorro locks DLL
by jcl. 01/07/26 13:33
zorro with ccxt?
by qin. 01/07/26 07:50
The new evaluation system
by jcl. 01/05/26 08:50
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
0 registered members (), 4,259 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Namitha_NN, Syndrela, agasior, mosfet, MonsterX
19188 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 | 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