Thank you Pappy :)
That was very helpful. I have only used the CHR$(0) to use arrows keys as well. but I didn't use CHR$(77) and such. I just put the capital letter in quotes.
CHR$(0) + "M"
~PlystirE~
ok qbasicking
Quick lesson in ANDing.
1 AND 1 = 1
1 AND 0 = 0
0 AND 0 = 0
6 <> 101 : 6 = 011 (Going from left to right)
1 = 100 (Obviously)
Now, 011 AND 100:
011
100
---
000
Therefore, the ending result is FALSE and will not run through your If Then block.
Hope that made sense ;)
GL...
even so Barok, if you AND a 1 with a 1 don't you still get a 1?
I'm not all too familiar with the whole boolean thing with QB. why can't you just say ">0" or "<>0" and see if it works then? Isn't it the same as what you are wanting to do?
~PlystirE~
qbasicking: You had me going for a second there. I'm a pretty decent 3D programmer and for a second I was thinking "No way, you could have 3D collision with that little code!" But then I didn't know you weren't talking about POLYGON collision :) (denggit)
Also, I see some nice ideas...
qbasicking: I did have to do this. For some reason whenever I used PUT, when using compiled exe, it gave me that error. But it doesn't give me there error when I use pixel by pixel.
MiggyD: Thanks for the Debug info but I've already tried soething like that and this error doesn't seem to be...
well i can tell you one thing.....it's not that function. and it can't be that i'm putting my sprites off screen because it runs fine when testing. not to mention the fact that the function doesn't even deal with putting sprites to the screen. It returns a 1 if the object i gave it collides with...
Well I found what has been causing the error.
It turns out that it gets the error when I place sprites onto the screen. Now why is it giving me an error for that?
And why is it only giving me the error when it's ran as a stand-alone exe? Shouldn't it be the same as running from QB?
Is there...
No, Blaster is just a variable I use in my program (I have no sound in this game at the moment, as I suck at using sound)
Wouldn't QB give me an error if the BLOAD files were not in the correct folder?
I suppose I better start cutting my declarations down then huh? ;) ;)
~PlystirE~
Ok...well at least some people know what might be causing it.
I once tried only compiling my title screen (after declarations and everything) and it gave me the same error, so i don't think it was an equation problem. (plus i have this thing about not seeing the rest of a line while I'm coding)...
it only gives me the error when i try to run the program as an executable.
It gives me this "Illegal function call in module SPACDRIV at address 0540:0991"
But i don't get any errors when I run it through QBX
Does anyone know what is causing this? This is very important to me...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.