|
Methods
|
|
|
|
|
|
LoadAnimationData
|
LoadAnimationData ( self )
|
|
|
LoadImages
|
LoadImages ( self, image_dict={} )
image_dict - should be a dictionary which is keyed by the frame name,
and valued by an image for that frame. If the dict is {}
then the images are loaded from disk.
|
|
|
MakeScaledVersion
|
MakeScaledVersion (
self,
key_name,
size,
)
keyname - what the scaled version should be called.
eg (really small, (0,0))
size - x,y tuple.
|
|
|
ResetImageRect
|
ResetImageRect ( self )
After changing the self.images dict this should be called.
|
|
|
SetLogicalImages
|
SetLogicalImages ( self, x_y )
Sets the appropriate images for the place on the logical grid.
|
|
|
SetPosition
|
SetPosition ( self, position )
|
|
|
StartAnim
|
StartAnim (
self,
anim_name,
loop=1,
)
|
|
|
__init__
|
__init__ (
self,
animation_set_name,
initial_animation,
)
animation_name - name of the animation set to use.
|
|
|
move
|
move ( self, direction )
|
|
|
update
|
update (
self,
frame_name=None,
percent_trans=None,
)
frame_name - this is the name of the frame to draw.
percent_trans - is the alpha value for which to draw If frame_name, and percent_trans are None then they are worked out
for themselves.
|
|