Mail Archives: djgpp/1999/02/12/18:31:56
I'm working on a program. Okay basically i'm using RLE sprites from a
datafile. Now I know how to load up the datafile, and that I can use the
sprite directly... like draw_rle_sprite( jman[ frame_1].dat - etc
But i've set it up to alias the frames in the datafile... I declared an array
of rle sprites like so... RLE_SPRITE *jumpman[ 12 ]; first I want to know if
that's ok... (i've actually compiled it all and it compiles without error)...
okay... so what i have is this to alias the sprites (frames)... i have it set
up to do this
jumpman[ 0 ] = jman[ frame_1 ].dat and so forth, for the rest of
the frames. Then at the end of my program i have a loop to destroy the sprites
like this:
for( c = 0; c < 12; c++ )
destroy_rle_sprites( jumpman[ c ] );
So i'm wondering if these declarations are ok? Basically I want to alias the
sprite frames, so I could set the current frame of animation
to the way i wanted. (I had done this with another program in msvc 1.0, and
had a way to change frames because of a certain order they were in). Anyways,
if this is too confusing, just write me and i'll try to re-explain better.
Basically i just want to know if those declarations above are ok to do. ( It
compiles, but i haven't written the rest of the program to try to do anything
with them yet, so I want to know ahead of time if you guys would think that
this would cause any problems)...
If you've read this far, thanks. I'd appreciate any replies -Keith W. II
*Keith Weatherby II*
*Uhfgood AT aol DOT com*
*Vice AT gconn DOT com*
- Raw text -