Results 1 to 4 of 4

Thread: Frame Animation

  1. #1

    Thread Starter
    Addicted Member Sonikku`'s Avatar
    Join Date
    Oct 2002
    Location
    NyC~
    Posts
    165

    Frame Animation

    What do you think is the fastest way to animation an object. I have my own methods but I'll need speed. Source examples would help aloT. Thanks for your help.
    Sonikku`- First Days of VB
    [vbcode]
    Dim Text1.Text as String
    [/vbcode]
    <Sonikku`> Whats wrong with this code, i keep getting an error about reserved keyword?
    <od`Sinchro> LOL!
    <Sonikku`> ?

  2. #2
    Frenzied Member cyborg's Avatar
    Join Date
    May 2000
    Location
    Sweden
    Posts
    1,755
    do you mean how to calculate objects or just count the frames?
    Check out the FAQ and do a search before you post.
    My tutorials: Anti-Alias Pixels, Accurate Game Loop, Resource File

  3. #3

    Thread Starter
    Addicted Member Sonikku`'s Avatar
    Join Date
    Oct 2002
    Location
    NyC~
    Posts
    165

    Frame CounT

    I mean counting the frames forward and making the animation loop at a certain point(running).
    Sonikku`- First Days of VB
    [vbcode]
    Dim Text1.Text as String
    [/vbcode]
    <Sonikku`> Whats wrong with this code, i keep getting an error about reserved keyword?
    <od`Sinchro> LOL!
    <Sonikku`> ?

  4. #4
    Frenzied Member cyborg's Avatar
    Join Date
    May 2000
    Location
    Sweden
    Posts
    1,755
    VB Code:
    1. Dim Running As Boolean
    2.  
    3. Private Sub Form_Load()
    4.     Me.Show
    5.     Running = True
    6.     Main
    7. End Sub
    8.  
    9. Private Sub Main()
    10.     Dim TempTime As Long
    11.    
    12.     While Running = True
    13.         If TempTime <= GetTickCount Then
    14.             TempTime = GetTickCount + Interval
    15.             'put code in here
    16.         End If
    17.         DoEvents
    18.     Wend
    19. End Sub
    20.  
    21. Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
    22.     Running = False
    23. End Sub
    Check out the FAQ and do a search before you post.
    My tutorials: Anti-Alias Pixels, Accurate Game Loop, Resource File

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