Search:
Type: Posts; User: Josh 4444 S
Search:
Search took 0.08 seconds.
-
Solved before any comments :P. For anyone interested:
http://www.vb-helper.com/howto_polygon_centroid.html
-
Hi all, I've searched for a good half hour before becoming stuck on this one. If I were to have an object of uniform mass, how would I go about finding the center of that mass? I understand how to...
-
Rhinobull got it right, a tiemr is the only way to do it. I am making a physics simulator in my class, and have been trying to avoid using timers. But, I guess that's the only way to do it so I...
-
Hi, is there any way to restrict a do loop so that faster processors are put on hold during the code, that is to say that one second on one computer si the same as one second on any computer? Thanks
-
Just remember who brought you Visual BASIC ;)
-
:O this has made me want to learn dX. Ive never done graphics programming before, only task oriented. Congratulations.
-
Ah, the fabulous search bar. Try giving these forums a quick search for direct x tutorial, you should get more than enough.
-
No, I think it is the same as with printing to the form. Every time you write print it will make a new line, if you add ; it should print to the same line. Alternatively you could print "hello" &...
-
Really? Thats bad coding practise? I didn't know that - it seems to be useful and saves time and memory to have only one variable defined than to have a different variable defined for every...
-
So you want a movable box which, when you move it, a line and a frame 'shadow' it? Also, if you move the shadowing frame it will reposition the line?
If the box is moved by code, simply do...
-
jeroen79 is right, you need to manually add lines to your program. There is another way though, assuming your images for your grid are bigger than say 5px wide and high, you can make a 'test'...
-
Keith is right, there is no zoom command. The only way to zoom is actually to trick the user into thinking they are zooming by manually changing the size and repositioning all of the objects. ...
-
There is an easier way to do this, instead of defining your variable as a private define it as a global. This way no matter where you are in the program the variable represents the same thing. The...
-
A caption right of the icon? What do you mean by that, as in an icon and a caption on one command button?
-
The obvious way is to set a data file to be read when the program opens. Try:
'Put this in Form Unload
Open "C:\MyProgData.xyz" For Output as #1
For X = 1 to NumOfVariables
...
-
I'll take a look at your code, give me a second. Although with DoEvents it should cover it...
EDIT: PANIC! my new computer doesnt have VB6 yet! Panic! In other words, can't help you out...
-
http://vbforums.com/showthread.php?t=413132
Same thing in theory, but different. Start out there. Also, search for AI on this forum. What game are you making? Poker, blackjack?
-
The easiest way to do this (not the fastest) is to take it one step at a time. Set a goal - such as make teh computer create 5 villagers and then gather resourses until you advance an era. Also,...
-
Heh, image rotation you will need either directX or plgblt, a lesser known version of bitblt.
However, I will write some quick collision (only detects for a box shapped object)
'Note where I...
-
Simplest way (although slows down the loop considerably) is to write DoEvents somewhere in the loop. That way it will accept user input while looping.
-
Personally I like the VisualQuickstart books, although I have not learnt vb from them. I have both the HTML and Javascript books from them and I find htem very good with a quick introduction then...
-
Hmm, im not opening VB here or anything, but an obvious (but slow) way to find out would be to set an array with all the search numbers with one element per number, then check them against the master...
-
First, im surprised that with about the same amount of posts as I have, you are still getting away with posting such vague titles. Please make it more specific in the future :P
Anyways, I believe...
-
perfect, thanks. and btw, i'm also from canada, probably about an hour and a half north of you :D. great weather today, so sorry bout the time between my posts i'm in and out.
-
yeah it looks like its gone, and bushmobile has said something VERY valuable (took me 2 months or so to figure it out) use control break to stop your code while debugging. the break button is...
-
erm... this seems a little obvious but isn't i currently undefined? msgbox both i and val(counter) before that line, and see what the values are and if you can compare them.
-
No problem, just dont forget to rate my post :)
-
Answered that :-)
Just modify it to fit right in.
-
Private Sub Command1_Click()
Dim str As String
Dim lett As String
str = InputBox("Enter a string")
lett = InputBox("Enter a letter")
If InStr(1, str, lett, vbTextCompare) = 0 Then
MsgBox...
-
Obviously if it is getting to the speakers there must be some data being sent - it just doesnt magically go from the program to the speakers (or so I am assuming :P). I figure as with most things...
-
That would work if I was looking for a hardware solution, unfortunately I am trying to attack it by going through a software approach. This way it would work on multiple computers as well as keeping...
-
Doesn't seem to be what I'm looking for... Maybe I'm not reading into it enough but from that I can only see a way to monitor the hardware.
What I am trying to do is have sound coming from my...
-
What games experience do you have? Are you bitblting or moving picture boxes, or another display method?
-
As hard as you try there is always going to be some way to get around a universal blockade of the net. I know - my school tried it :P. One simple solution is to use another browser, or the user...
-
I thought a rudimentary question like this would have been answered already, but i couldnt find it in the search. Oh well, here goes.
I want to capture audio coming from the speakers - not audio...
-
If all pictures have the same width:
Option Explicit
Private Const IMG_WIDTH = 50 'the width of the picture
Private Const NUM_IMAGES = 16
Private Const START_POS = 50
Private Const...
-
What i think they are getting at Sub_Zero is if you want to take your game programming skills to the next level you must use some kind of display device BESIDES moving objects around on the screen.
...
-
varr = 56789
varr = varr/100
-
Well I have not been able to completley remove a var from the array. Care to take a little time and explain how to do that?
-
Yeah, I was trying to take the laze mans route and copy it to the array starting at the values which were left alone. I'll try that out now.
|
Click Here to Expand Forum to Full Width
|