Why does player sprite not scale down

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)

Post a reply

Smilies
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :geek: :ugeek: :!: :?: :idea: :arrow: :| :mrgreen: :3: :wub: >:( :blergh:
View more smilies

BBCode is OFF
Smilies are ON

Topic review
   

Expand view Topic review: Why does player sprite not scale down

Re: Why does player sprite not scale down

by krzy19 » Fri Nov 15, 2019 12:27 pm

Thanks for help

Re: Why does player sprite not scale down

by krzy19 » Fri Nov 15, 2019 12:27 pm

I just foud that you need to add playerclass, but thanks.

Re: Why does player sprite not scale down

by Jarewill » Fri Nov 15, 2019 12:24 pm

The code shows a new playerclass.
It's not possible to change the way the player looks without making a new class.
Something as simple as

Code: Select all

ACTOR DoomPlayer2 : DoomPlayer { Scale 0.5 }
will work.
Though the class must be added as a playable class for it to show.
Edit: Actually it might be possible by using A_SetScale instead....
But just adding scale to a playerclass seems easier to do.

Re: Why does player sprite not scale down

by krzy19 » Fri Nov 15, 2019 12:18 pm

I didn't add a playerclass.

Re: Why does player sprite not scale down

by Jarewill » Fri Nov 15, 2019 12:09 pm

Scale should work.
Are you playing as the playerclass?

Why does player sprite not scale down

by krzy19 » Fri Nov 15, 2019 11:54 am

So, i have this problem, that i try to add new doomplayer by creating decorate file. I tried HI_START but it doesn't look good. Can someone tell me how to use scale function on player properly?
Here's the code

Code: Select all

Actor PlayerNew: PlayerPawn
{
  Speed 1
  Health 100
  Radius 16
  Height 56
  Mass 100
  scale 0.5
  PainChance 255
  Player.DisplayName "PlayerNew"
  Player.StartItem "Fist"
  Player.StartItem "Clip", 40
  Player.ColorRange 128, 151
  States
  {
  Spawn:
    PLAY A 1
    Loop
  See:
    PLAY A 6 
    PLAY B 6
    PLAY C 6 
    PLAY D 6
    goto spawn
Missile:
    PLAY E 12 
    Goto Spawn
  Melee:
    PLAY F 6 BRIGHT
    Goto Missile
Pain:
    PLAY G 4 
    PLAY G 4 A_Pain
    Goto Spawn
Death:
    PLAY H 10
    PLAY I 10 A_PlayerScream
    PLAY J 10 A_NoBlocking
    PLAY KLM 10 
    PLAY N -1
    Stop
  }
}

	

Top