Gamestudio Links
Zorro Links
Newest Posts
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AbrahamR), 717 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 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