Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Sign in to follow this  
dufferton

Sprite rotation

Recommended Posts

Im trying to get a sprite to rotate.
Not like how if you walk around it, you see different sides, i want it to look like its spinning in mid air, but i only use one image.

is this possible?

Share this post


Link to post

If you mean only one image for each step of the rotation, that's easily done with a bit of scripting. Here's an example I threw together for ZDoom using the Revenant's SKELH sprite angles, which have been renamed so each is treated as a separate frame in the animation sequence.

Share this post


Link to post

thanks, but thats not quite what i was saying
im looking for something more like this (apologies for small image choice)

I was wondering if something like it could be achieved with code.
I'm super lazy and dont wanna make a separate image for each angle the sprite turns in

Share this post


Link to post
dufferton said:

I'm super lazy and dont wanna make a separate image for each angle the sprite turns in

I'm afraid you will need to do that, since it's the only way.

Share this post


Link to post
dufferton said:

im looking for something more like this (apologies for small image choice)

For spinning animations like that, there's a utility called RotSprite which can create the other sprite frames you need. The end result will be eight 45ยบ shifted frames which could be merged into a single file gif animation, though I can't think of any source ports that support the gif image format.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
×