Hey Anthony

no animated directional sprite yet, but its on the todo list... ;)

Rob


On Wed, Nov 25, 2009 at 8:27 AM, Anthony <[email protected]> wrote:

> Hi there,
>
> I was just wondering if there was ever an animated Directional sprite
> made, I've played around with the DirSprite2D now I'm wanting to make
> a directional sprite that would be animated, that'll run off a Sprite
> Sheet. Bit like the doom sprite sheets. I want to make multiple
> Sprite's run off the same bitmap file, to save memory. Because there
> might be over 10-20 of the same sprites displayed at one time. So I
> don't want 10-20 times bitmapdata's put in memory.
>
> I'm currently playing around with a AnimatedDirSprite2d.as /
> AnimatedDirSprite2dProjector.as and I've updated the view.as and so
> one to accept the new Sprite type. Changed the Enum etc.
>
> The Grouping of Driections and Frames is like this.
>
>
> _bitmaps:Dictionary //Contains Arrays Frame name(Prone/Attack1/Run
> etc) as key and another Dictionary  as value
>                |
>                -> ArrayOfAngles:Dictionary  //Contains Vertices as
> key (front/back/leftright etc) and Array as Value.
>                                    |
>                                     -> Bitmaps:Array // contains
> bitmapData for each frame..
>
> It is complex.. I know. but I can't think of a better way to do this
> type of sorting.
>
> Now I want the projector to sort the angle of course and the current
> FrameGroup(Run/walk/jump) and Frame Number.
>
> I've setup a way of copying an area of the SpriteSheet to a small
> bitmap, for frames
> PicPoint.as // basicly contains a set a Points(x,y); that's passed
> into the sprite and it copies the bitmapdata from the main large
> SpriteSheet bitmap. throughs that data into the Array at the botton of
> the tree above.
>
> I've based this Idea off the dirSprite2d design,
>
>
> BUT IF THERE IS SOMETHING OUT THERE ALREADY... would be nice for me to
> play with that over trying to design this from scratch.
>
> I've created 3 classes and altered 2 classes in the engine.
>
> I've not researched this greatly, I'm not sure if you could use a
> moviematerial with the normal directional sprite, but if that is the
> case, could you please explain how to do? I don't want to dive in too
> much if there is an easier way.
>
> Thanks ahead of time
>
>


-- 
Rob Bateman
Flash Development & Consultancy

[email protected]
www.infiniteturtles.co.uk
www.away3d.com

Reply via email to