VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



an example for a way to simulate gravity in a game. in this example, the image is attracted to the

by Anonymous (267 Submissions)
Category: Games
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Sun 6th March 2005
Date Added: Mon 8th February 2021
Rating: (1 Votes)

an example for a way to simulate gravity in a game. in this example, the image is attracted to the top of the form and gains speed headed in

Rate an example for a way to simulate gravity in a game. in this example, the image is attracted to the



yspeed = 1
End Sub

Private Sub Timer1_Timer()
yspeed = yspeed + yspeed / 2
Image1.Top = Image1.Top - yspeed
End Sub


Download this snippet    Add to My Saved Code

an example for a way to simulate gravity in a game. in this example, the image is attracted to the Comments

No comments have been posted about an example for a way to simulate gravity in a game. in this example, the image is attracted to the . Why not be the first to post a comment about an example for a way to simulate gravity in a game. in this example, the image is attracted to the .

Post your comment

Subject:
Message:
0/1000 characters