|
Hey deftech,
I'm actually trying to move an object across the screen..
I'm using the picturebox1.drawpicture technique and incrementing the start X value. The problem is that it SHOOTS across the screen too fast and I need it to meander across the screen.
So in my main code I'm using a
Do While variableend = false
call timer1_timer
loop
The time process has all the functionality.
It has:
private sub timer1_timer()
timer1.enabled = true
timer1.interval = 500 'I've been playing around with different numbers"
picturebox1.drawpicture
increment x value
if x > 100 then
variableend = true
timer1.enabled = false
endif
end sub
So I know that my test condition works, the object does move across the screen as required. It's just that the timer loop shoots through with no delay. Should I be calling it using a different method? call timer1_timer(500) or something?
It's got to be something simple staring me in the face.. Just my naivity is preventing me from seeing it no doubt..
__________________
Always read stuff that will make you look good if you die in the middle of it.
|