New command request - GRABANIM

Previous topic - Next topic

Ian Price

Hi Gernot

Would it be possible to create a new command - GRABANIM ??

Usage (similar to GRABSPRITE, but with frame width and height) - GRABANIM no%, x%, y%, totalwidth%, totalheight%, framewidth, frameheight

This could enable realtime creation of animated sprites and effects - eg could be used in an explosion generator etc.

I know that it's possible to GRABSPRITE and SAVESPRITE then LOADANIM from the grabbed sprite, but the above command could do this all in one.

Or is there something that already does this?
I came. I saw. I played.

Kitty Hello

Strange. I had the very same requirement just a minute ago for my WizSticks...

I think, I'll just add a command to "tile" a sprite. Internally it's just 2 numbers for each sprite that tell the tile sizes, should be easy to do, thus.

Hatonastick

Just goes to show that great minds think alike (erm not mine, you two).  :good:

Ian Price

"Great minds think alike" or "Fools seldom differ"? :P

Nice one :)
I came. I saw. I played.

Scott_AW

That would be a rather nice command to have, it could allow for custom sprite sets composed of different images, like layering weapons/clothing/hair/ect. over a template/nude sprite.
Current Project, Orbital Contract Defense
http://gamejolt.com/games/adventure/code-name-ocd/9887/

BlackShadow now open source/resource(requires duke3d)
http://gamejolt.com/games/adventure/black-shadow-3d/9885/

FutureCow

Is the idea to make it so you don't have to create things in realtime?
i.e If you make an explosion generator, you want to capture all the frames created (assuming they were not able to be created in realtime, or were CPU intensive to create in realtime) as a series of images so that you can play them back in realtime?

Ian Price

Kindof. You create your new animated images at the start of the app, using basic building blocks (or via code) to create multiple new images for an animation, ready to be used later. This would minimize the number of loaded sprites and create totally new ones with new images/colours etc. without adding any extra "weight" to the size of the file (or having to hand draw a load of extra new animations).

I don't want to create an explosion generator, that was just one quick and obvious thing that could be achieved with this command. Scott_AW's example was a good one.
I came. I saw. I played.