2 registered members (TipmyPip, 1 invisible),
18,731
guests, and 7
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: Disable key_1?
[Re: Uhrwerk]
#395116
02/20/12 00:28
02/20/12 00:28
|
Joined: Nov 2009
Posts: 70
Siwler
OP
Junior Member
|
OP
Junior Member
Joined: Nov 2009
Posts: 70
|
Thanks for all the help, I appreciate you taking your time to helping me out.
Honesty will get you far, were dishonesty will get you only so far in life.
|
|
|
Re: Disable key_1?
[Re: Siwler]
#395124
02/20/12 01:39
02/20/12 01:39
|
Joined: Jan 2002
Posts: 4,225 Germany / Essen
Uhrwerk
Expert
|
Expert
Joined: Jan 2002
Posts: 4,225
Germany / Essen
|
You're welcome. But much more important: did you solve your problem?
Always learn from history, to be sure you make the same mistakes again...
|
|
|
Re: Disable key_1?
[Re: Uhrwerk]
#395132
02/20/12 02:24
02/20/12 02:24
|
Joined: Nov 2009
Posts: 70
Siwler
OP
Junior Member
|
OP
Junior Member
Joined: Nov 2009
Posts: 70
|
Lol no, not the way you showed me, for some reason I couldn't disable key 1.
I even checked if key 1 was been active somewhere else as you showed me to check for and nothing happened, it was OK.
So I had no choice but to switch temporarily key 1's scan number, strange that NULL didn't work for replacing the scan number, I wish there was a scan number that was neutral to any of the keys, it would work perfectly.
I worked on this issue for 2 weeks now so this what I came up with is OK for now. I have to move on to my next issue.
Honesty will get you far, were dishonesty will get you only so far in life.
|
|
|
Re: Disable key_1?
[Re: PadMalcom]
#395200
02/20/12 21:46
02/20/12 21:46
|
Joined: Nov 2009
Posts: 70
Siwler
OP
Junior Member
|
OP
Junior Member
Joined: Nov 2009
Posts: 70
|
Thanks I might just do that after menu system, which is also giving me a headache lol.
Are there directions anywhere on how to upload projects?
Honesty will get you far, were dishonesty will get you only so far in life.
|
|
|
Re: Disable key_1?
[Re: Siwler]
#395233
02/21/12 11:40
02/21/12 11:40
|
Joined: Jan 2002
Posts: 4,225 Germany / Essen
Uhrwerk
Expert
|
Expert
Joined: Jan 2002
Posts: 4,225
Germany / Essen
|
So I had no choice but to switch temporarily key 1's scan number You changed a key's scan number? Could you explain that?
Always learn from history, to be sure you make the same mistakes again...
|
|
|
Re: Disable key_1?
[Re: Uhrwerk]
#395294
02/21/12 21:52
02/21/12 21:52
|
Joined: Nov 2009
Posts: 70
Siwler
OP
Junior Member
|
OP
Junior Member
Joined: Nov 2009
Posts: 70
|
Here is part of my code and check the str_for_key in both actions.
action WepShoppe_loadLvL() // attach this action to an entity at the weapons shoppes door
{
while (vec_dist (player.x, my.x) > 100) // wait until the player comes close to this entity
{
wait (1);
}
level_load (WepShoppe_wmb); // now load the wepshoppe level
mouse_mode = 4; // set courser on for this lvl
mouse_map = cursor_pcx;
str_for_key(key_weapon1, 11); // swich 2 into 11 on key_board
action City1_loadLvL() // attach this action to an entity at the door in WepShoppe lvl to go back to main level
{
while (vec_dist (player.x, my.x) > 100) // wait until the player comes close to this entity
{
wait (1);
}
str_for_key(key_weapon1, 2); // swich 11 back into 2 on keyboard
level_load (City1_wmb); // now load the main level
mouse_mode = 0; //turn off mouse courser
}
I know it does not solve the problem completely but after 2 weeks working on this I said its close enough. 
Honesty will get you far, were dishonesty will get you only so far in life.
|
|
|
|