|
-
Nov 14th, 2000, 08:15 PM
#1
Thread Starter
New Member
-
Nov 14th, 2000, 08:59 PM
#2
Addicted Member
Use a for next loop inside the timer, like this:
Code:
For MovePicz = 0 to 9
Object(MovePicz).Top = Object(MovePicz).Top - 5
Next MovePicz
Obviously, change the numbers around to whatever fits your program. And, BTW...Timerz are evil k tnx >;) I won't start telling you to go and use Loops for your entire game thou, I mean you gotta start at the beginning, right!? I remember the good ol' dayz when I used 50 picture boxes and a few timerz...
To understand recursion, one must first understand the concept of recursion.
-
Nov 15th, 2000, 04:32 PM
#3
Keep in mind that you cannot use "Object" as a variable name as it is already in use by VB.
-
Nov 15th, 2000, 05:47 PM
#4
Addicted Member
Oh yes, I did forget to mention to replace object with wutever your control is called, but i'm sure you knew that.
To understand recursion, one must first understand the concept of recursion.
-
Nov 15th, 2000, 06:49 PM
#5
Thread Starter
New Member
what do you suggest i use instead of timers? i tried gettickcount but i dont get it. explain please 
timers work fine for me except when ineed to to somthing fast
-
Nov 17th, 2000, 11:18 AM
#6
Frenzied Member
you got to do a loop like
dim wait as long
do
and just put the code in here if you want to use gettickcount then just put a var
if wait < gettickcount then
code here
wait = gettickcount +the time you want to wait
endif
loop while exit =false
Sanity is a full time job
Puh das war harter Stoff!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|