Quantcast
Channel: ZDoom
Viewing all articles
Browse latest Browse all 3391

Scripting • Problems with A_OverlayOffset

$
0
0
I'm trying to make an overlay that starts offscreen and then slowly moves in from the left.

Code:

EFCT A 1 A_OverlayOffset(LEFTLAYER, -73, 0)EFCT A 35 A_OverlayOffset(LEFTLAYER, 73, 0, WOF_ADD)
The sprite is being interpolated, but the problem is that it's happening too fast. It's moving into position almost immediately instead of over 35 tics, and nothing I do is changing it. How can I slow down the offset so that it's spread out over every tic of the frame?

Statistics: Posted by Ershantik — Thu Feb 22, 2024 8:29 am



Viewing all articles
Browse latest Browse all 3391

Trending Articles