Poll: What is the most powerful special?
You do not have permission to vote in this poll.
Repel
100.00%
8 100.00%
Invisibility
0%
0 0%
Afterburner
0%
0 0%
Immunity
0%
0 0%
Teleport
0%
0 0%
Speed Drain
0%
0 0%
Reach
0%
0 0%
Total 8 vote(s) 100%
* You voted for this item. [Show Results]

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Chaser
#21
I know, I'll make a library with it, (might not work), and include the instruction as a txt file.
Reply
#22
I finally got it. I had to go Save Target As instead of copying it into notepad and saving as bas.
Sorry for taking so much of your time.
And I use version 1.1.

Big Grin

So, to use multikey, do you just go
IF MULTIKEY(1) "q" THEN END
Reply
#23
no, MULTIKEY(1)"q" wont work, the number in the parenthesis is the scancode [NOT THE SAME AS INKEY$ SCANCODES]
for example
MULTIKEY(1) is escape
MULTIKEY(2) is number 1 on the keyboard
MULTIKEY(3) is number 2 on the keyboard
MULTIKEY(16) is letter 'q'
MULTIKEY(28) is enter
etc
To test for the key number (ie MULTIKEY(keynumber))
use KEYTEST
it should then give you a little table, press the keys you want, and you should see a '1' next to a number, that number is the scan code
if you press 2 keys (or more) at once, several numbers should 'turn on' Most of this is explained in the top of the bas file.
one other thing:
TO USE MULTIKEY YOU MUST TURN IT ON BY CALLING
int = MULTIKEY(-1) 'I use the variable int for initializeing functions because where else are you going to use a variable called 'int'?
ANOTHER THING, BEFORE YOUR PROGRAM ENDS YOU MUST CALL
int = MULTIKEY(-2)
to turn your keyboard handler back to normal, or your keyboard will not work
-----------
Big Grin Big Grin Big Grin
meritmonster
Reply
#24
ENTER is actually 28, it just replaced (28 ) with a smiley
Reply
#25
How did you compile chaser with 1.1? Did you use one of those third party compilers?
Youll need 4.5, (I think), to use MULTIKEY, becuse it uses CALL ABSOLUTE, and needs the QB quicklibrary. It might work on 1.1, try it and see.
Reply
#26
Thanks for the explanation. If I forget to turn Multikey off, will having to restart to computer be the only consequence? What if I control-break mid-program?

Anyway, about your compiler question, I program in 1.1 then compile in 7.1. 1.1 seems to run in a speed more similar to an EXE.

I got MULTIKEY in, and it works very well! Thanks again! Big Grin I have a problem though (suprise, suprise):
The down arrow returns 1's for 42 and 80. The 2(down) on the number pad returns 80. So, when I press the down arrow, it controls two people. I tried if 80 is triggered and 42 is not triggered, but then pressing the arrow renders the number pad user immobile. Gak! Should I move the arrow user to letters?
Reply
#27
You could use W, A, S, D.
W would be up, S would be down, D would be right and A would be left.
Reply
#28
WASD is already used, why not IJKL or something like that?
Reply
#29
I added the new controls in. For 1 and 2 player games, the arrows still work. For a three player game, i, j, m, and l and the conrtols.
8)

Guess what! I have another problem! I tried to compile, and got Program-Memory Overflow. What does it mean?
:-?
Reply
#30
Nevermind, I fixed it. Apparently, it means that the program is too long. Is there any way around the length limit?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)