Thanks. That's pretty amazing how simple it is. It solved a part of my problem.
I suppose that I have to set those vectors now. I try to set the projectile tragectory upon angle and velocity. Is there a way to set those vectors base on angle and velocity?
I'm poor in maths :(
Hi,
I am working on a project that requires projectile simulation. I've searched a lot on the internet but i'm still out of the way because it requires a lot of mathematical knowledge.
I want to build a game about two artillery batteries firering at each other. A classic, but a case of...
There no problem at all. :) I've got a cousre about structures 6 month ago: it has to serve!
Hey! I've just went into an idea! My course was about structure handlind in C with dynamic memory access with pointers. Pointers, that qbasic can't handel so far can be access with this idea. I don't...
In complement to cgfiend, you can even make it more sophisticated by adding some type into other type.
Exemple:
Your weapon can fire standard bullets and can shoot grenades too. What can you do about that?
Make a new record type about munitions
TYPE sMunition
wNumOfBullets as integer...
You could either:
1-Work with Qb45 or Qb71 to use the /AH command line option.(allows you to bypass the 64K limit)
2-Use local variables in your subs to preserve memory between calls.
3-Use a swap file instead of memory. (much slower but absolutely legal)
4-Rework your algo to figure out a...
I meant that you MUST make notices in your prog. It's not a matter of class; its about other people who will look at. You can't expect to be help without helping others to understand your code.
This code works for me too. I've tried this code for testing your posts and didn't get anything going wrong.
SCREEN 9
COLOR , 1 'for defining the screen's bounds
LINE (0, 0)-(600, 0), , , &HFFFF
LINE (0, 15)-(600, 15), , , &HFFFF
LINE (0, 339)-(600, 339), , , &HFFFF
LINE (100, 0)-(100, 15), ...
Well, I guess I've got your answer.
In the previously sent program, the BX register is used to set the video page and set the color of the caracter.
BH <- Page
BL <- Color
This text page allows 16 colors -> 00H to 0FH. So what about those extra 4 bites? (That is where you're supposed to get...
Good ones.
The fact is that the utility of changing the color of a button just for signifying that the button has been clicked is, an opinion of mine, out of purpose. It is always difficult to think about everything in an application, I'll admit it. What will simplify the life of the user...
Hi,
the service 09h of the interrupt 10h can change color.
MOV AH,09 ; FUNCTION 9
MOV AL,03 ; HEART ASCII
MOV BX,0004 ; PAGE 0, COLOR 4
MOV CX,07D0 ; 2000 CARACTERS
INT 10H ; INTERRUPT 10 -> BIOS
INT 20H ; END
Enjoy. ;-)
Hi,
I didn't have much time to look at your code yet. However, I detected a little something in the FileCopy() sub. I don't think that it can solve the problem but it might help correcting "Not a directory" error handling.
SourceDir$ = ParsedDirName$(Source$)
IF NOT...
I'm a little disapointed to see that people don't really read the threads carefully before answering..
BTW: I'm trying to run this under Windows XP. :-)
Sure it might. But the real question's about how to trap the scanCode? Because the Ascii argument doesn't seem to consider the keypress. Or maybe we doesn't use it the good way; I didn't found anything about this in the vb help.
The better way I found is to create "file editor" for previously saving picture in the "get/put" format. Because dealing with the data structure as Alt155 have done is a very complicated task, getting the picture done and saving the variable as it is into the file is a good...
Hi.
I can't do anything about arrows; sorry. But nothing isn't lost! You need the user to be able to click on a textBox but don't want him to alter the content? The property TextBox.Locked will surely satisfies your needs.
If you're working with values, then you should use:
1704370 = 1.704370 * (10^6)
1.704370 = 1704370 / (10^6)
so,
result = number / (10^exp)
lngNumber = Val(txt.Text)
strNumber = Str$(lngNumber)
intExp = Len(strNumber) - 2
dblNumber = lngNumber / (10 ^ intExp)
lbl.Caption = dblNumber
Oak
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.