Blitz (115/119)

From:Jason Faramus
Date:27 Jun 2001 at 11:30:31
Subject:Animation Question

Hi all,

How would I go about animating a character in Blitz? In AMOS I used to use AMAL
but since using Blitz I have yet to find an effective method. I have tried putting all of
the frames that I want to animate in data statements and reading them into a
variable that is used to select the image. Is this the best way to tackle the
problem?

Thanks Jason.

'------------------------------
Here's what I'm doing at the moment.
'------------------------------

If JoysickLeft(1)
statu$="WALKINGLEFT"
Restore PLAYER_+statu$
Endif

If JoystickRight
statu$="WALKINGRIGHT"
Restore PLAYER_+statu$
Endif

Read playerframe

If playerframe=0
Restore PLAYER_+statu$
Endif

QBlit 0,playerframe,100,100

' Player data.
'-----------
PLAYER_WALKINGLEFT:
Data 1,2,3,0

PLAYER_WALKINGRIGHT:
Data 4,5,6,0

---------------------------------------------------------------------
To unsubscribe, e-mail: blitz-list-unsubscribe@netsoc.ucd.ie
For additional commands, e-mail: blitz-list-help@netsoc.ucd.ie