a move like mario

blursea
08-08-2001, 10:10 AM
i want when i press the right key mario begins it's animation move!
how can i make that?

Squirm
08-08-2001, 02:25 PM
How is your animation stored? I would suggest making his animation out of frames the same size as each other all in one .BMP file. Then, the pictures can be loaded by cycling the frame. I am not sure of the actual code you would use though.

haoli12345
08-08-2001, 03:30 PM
Here I edited the code I gave you last which this time I animate it with stick man figures. Remember to change the pics to mario pic etc.



-Hao Li-

TommyHM111
08-16-2001, 04:54 PM
Here is some code that will do the animation...there are some flaws to it also, put this in the keyleft place or keyright so it coincides with the moving
Static PickBmp As Integer
Dim i As Integer

For i = 1 To 2

If PickBmp Then
Mario.Picture = marioOpen.Picture ' Displays the Open legs mario picture
Else
Mario.Picture = marioClose.Picture ' Displays the closed legged mariopicture.
End If
PickBmp = Not PickBmp

Next i

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum