hello peers,
im working on a game, a pong-ish game
there's is supposed to be a pause button
but i dont know what to write.
this is the first time i use vb.
is there such a thing as a suspend method or somthing.
im using vb6
thanx for the input :)

That depends entirely on how your game works.... are you using a timer control for your loop? Are you just doing a big ass while loop and putting your code in that? The code for the pause button will differ based on your method of implementation.

im using a timer loop

in your pause button just do:

time1.enabled = false

I have time1.enabled = false & time1.enabled = true but i want it on the same button command hjow do i do it ?

frozie, frozie, frozie.... I know you only have four posts, but if you have been reading these forums, I'm sure by now, you know not to necropost like this!!! Shame, shame, shame on you...

Now, there are a couple of ways you can do this under one button...

If Timer1.Enable = True Then
  Timer1.Enabled = False
Else
  Timer1.Enabled = True
End If

or

Timer1.Enabled = Not Timer1.Enabled

Good Luck

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.