Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
2 registered members (OptimusPrime, AndrewAMD), 14,580 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 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