Remap Key

Talk about making games.

Remap Key

Postby ingsan » Mon Mar 29, 2004 4:35 pm

Hi everyone ! :)

I have a MainGame for PPC with 2 Game Data attached to it.

In MainGame, two keys (KEY S and ENTER) are remapped for PPC version (On PPC, they become KEY C and KEY B). Key S is to select a game between two games and KEY ENTER is to start the selected game.

But on both Game Datas, i have two other keys (KEY LEFT and KEY RIGHT) remapped on the same PPC keys, ie KEY LEFT > KEY C and KEY RIGHT > KEY B.

So on MainGame :
    Keyboard > PPC
    KEY S > KEY C
    KEY ENTER > KEY B

On both Game Datas :
    Keyboard > PPC
    KEY LEFT > KEY C
    KEY RIGHT > KEY B


Then on loading Game Datas, the left and right keys of the PPC won't work as they have already been mapped in MainGame!

How can i remap the Same keys to PPC in both MAin GAme and Game Data ?
Any idea ? :cry:
User avatar
ingsan
 
Posts: 580
Joined: Mon Nov 17, 2003 4:02 pm
Location: Maurician LADY in FRANCE
Score: 6 Give a positive score

Postby phractus » Mon Mar 29, 2004 5:41 pm

intresting.

good luck!
phractus
 
Posts: 77
Joined: Mon Mar 08, 2004 1:25 am
Location: Rochester, NY, USA
Score: 0 Give a positive score

Postby ingsan » Mon Mar 29, 2004 7:41 pm

:cry:
User avatar
ingsan
 
Posts: 580
Joined: Mon Nov 17, 2003 4:02 pm
Location: Maurician LADY in FRANCE
Score: 6 Give a positive score

Postby ingsan » Mon Mar 29, 2004 11:28 pm

From GE Documentation :
void remapKey(int fromKey, int toKey)
Redirect fromKey to toKey (User config keys)
Reseted in LoadGame



I don't know how to work out this. Any idea, Please ? :(
User avatar
ingsan
 
Posts: 580
Joined: Mon Nov 17, 2003 4:02 pm
Location: Maurician LADY in FRANCE
Score: 6 Give a positive score

Postby ingsan » Tue Mar 30, 2004 1:00 pm

Maybe i should change my question...

How can i remap a key with script ?
and not with Configure User Properties.

My mapped keys for MainGame do not seem to reset on Loading another Game :?

Thanx
User avatar
ingsan
 
Posts: 580
Joined: Mon Nov 17, 2003 4:02 pm
Location: Maurician LADY in FRANCE
Score: 6 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest

cron