Results 1 to 5 of 5

Thread: Moving Picture .....??

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2001
    Location
    Yugoslavia
    Posts
    2

    Question Moving Picture .....??

    I use this code :

    Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
    If KeyCode = vbKeyLeft Then
    image1.Left = image1.Left - 50
    End If
    End Sub


    But image so vibrate.......

    How can I escape this ?

  2. #2
    Frenzied Member Jotaf98's Avatar
    Join Date
    Jun 2000
    Location
    I'm not gonna give you my IP address! Ok... Portugal, South-Western Europe, 3rd rock from the sun (our star is easy to find, a 47 Ursae Majoris in the Milky Way :p )
    Posts
    1,457
    Sorry, what do you mean with "image so vibrate"? Does it flicker too much?
    Code:
    Temp = Me.GetIQ()
    'Error 9: Overflow
    'DON'T PANIC! :eek:

    To learn how to use realistic effects in your games like fire, rain, snow and magic effects, read my article on particles systems here.


    Jotaf's Theories!
    "Cats land on their feet. Toast lands peanut butter side down. A cat with toast strapped to its back will hover above the ground in a state of quantum indecision."

  3. #3

    Thread Starter
    New Member
    Join Date
    Aug 2001
    Location
    Yugoslavia
    Posts
    2

    Yes....Yes

    Yes_

    Picture flicker too much...

  4. #4
    Techi
    Guest

    i got that

    the same happened to me when i used pictures in boxes.

    pictures are unreliable to move using .left or .top try to find a new method.

    but if you must use .left or .top try not to use any timers this was one problem i had when i tried this.

    one other method....BitBlt

  5. #5
    Frenzied Member Jotaf98's Avatar
    Join Date
    Jun 2000
    Location
    I'm not gonna give you my IP address! Ok... Portugal, South-Western Europe, 3rd rock from the sun (our star is easy to find, a 47 Ursae Majoris in the Milky Way :p )
    Posts
    1,457
    Yeah, BitBlt is how people make professional games (WinQuake was made with it )

    It might be a bit hard for a begginer. If you don't wanna use BitBlt you'll have to live with that flickering
    Code:
    Temp = Me.GetIQ()
    'Error 9: Overflow
    'DON'T PANIC! :eek:

    To learn how to use realistic effects in your games like fire, rain, snow and magic effects, read my article on particles systems here.


    Jotaf's Theories!
    "Cats land on their feet. Toast lands peanut butter side down. A cat with toast strapped to its back will hover above the ground in a state of quantum indecision."

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width