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

Problems with Scaling hanging Sprites in Zdoom

Recommended Posts

Hi,

I have a sprite that's 128 x 182 that I want to be hanging from the ceiling. I want it scaled down to 0.3, and everything works fine until I walk around the sprite and I realize it's "moving" around the ceiling above.

Here's the DECORATE code:


actor ElectricLight 10247
{
height 72
radius 51
scale 0.3
+SPAWNCEILING
+NOGRAVITY
states
{
Spawn:
ELIG A 10
}

}

Are there limits with scaling?

Share this post


Link to post

It's more likely to be an offset issue with the sprite graphic. From memory, the Y offset of a hanging sprite needs to be the same as the height of the actor (72 in your case). How that is affected by scaling, I don't know. It works for unscaled sprites. Also, make sure that the X offset correctly centres the sprite. It sounds from your description like that could be wrong too.

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  
×