Rotating actor in DECORATE only?

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Locked
Nevander
Posts: 2254
Joined: Mon Jan 06, 2014 11:32 pm

Rotating actor in DECORATE only?

Post by Nevander »

Is it possible to rotate an actor with DECORATE only? I am not referring to flipping the sprite, as talked about here. What I mean is to turn something like an arrow-like projectile from horizontal to vertical.

Something like this:

Code: Select all

Instead of this:
<==

I want this:
||
||
\/
I know I could just rotate the sprites manually and inherit the old actor with the new sprites, but I'd like to do it with code if possible. Also how would back side and front rotations work when the sprite is rotated? Doom doesn't have a bottom and top view of a sprite, so how would back and front be translated to bottom and top?
User avatar
Voros
Posts: 151
Joined: Fri Feb 03, 2017 11:47 pm

Re: Rotating actor in DECORATE only?

Post by Voros »

Doesn't the TEXTURES lump have this feature?
Nevander
Posts: 2254
Joined: Mon Jan 06, 2014 11:32 pm

Re: Rotating actor in DECORATE only?

Post by Nevander »

I think it can rotate, however I just ended up going with the manual approach. I just copied the straight-most angled sprite and rotated it in SLADE and renamed it, then inherited the original projectile and changed it's Spawn state frames. That allows me to fire them like a normal projectile and will retain compatibility. It's good that you can fire projectiles down using the vpseed argument or this would be pointless.
User avatar
Matt
Posts: 9696
Joined: Sun Jan 04, 2004 5:37 pm
Preferred Pronouns: They/Them
Operating System Version (Optional): Debian Bullseye
Location: Gotham City SAR, Wyld-Lands of the Lotus People, Dominionist PetroConfederacy of Saudi Canadia
Contact:

Re: Rotating actor in DECORATE only?

Post by Matt »

Can't you set the roll property after enabling +rollsprite (and +rollcenter)?

It would only work for GL though.
Locked

Return to “Editing (Archive)”