Jump to content
  • 0

Is it possible to scroll ceiling textures a set amount?


Razumen

Question

Basically the title, all I've found is ways to scroll the floor or ceiling textures indefinitely. I just need to scroll them for a certain distance and then stop.

Share this post


Link to post

2 answers to this question

Recommended Posts

  • 0

You can through scripts: you run a script where you activate the scrolling for x amount of ticks adding a "Delay(x)" (you'll obviously need to test how much time it takes) and then you stop the script (or you can simply stop the scrolling inside the same script)

Share this post


Link to post
  • 0

Thanks, but I found a much better way to do it, I'll post below for anyone else looking here:

You can do it with the action special 224: Scroll Ceiling and by using a dummy sector to control the scroll. The ZDoom wiki isn't very clear of this:

https://zdoom.org/w/index.php?title=Scroll_Ceiling
https://zdoom.org/w/index.php?title=Scroll_Floor

Draw a dummy sector outside the map area so that one of it's linedefs is parallel to the direction where the ceiling texture should scroll. For this line give it the special and arguments:

Action: 224 Scroll Ceiling.
Sector Tag: to the targeted ceiling.
Options: 1 Displacement *and* 4 Scroll by dx/dy.
Scroll: texture only
Horizontal: don't scroll
Vertical: don't scroll

Now the targeted ceiling will scroll when the dummy sector floor or ceiling moves up or down. It'll scroll in one direction when the floor goes down, the opposite when the floor goes up. The speed of the raise/lower will control the speed of the scrolling. The scrolling distance in map units is calculated from:

(1/32) x (the length of the 224 action line) x (the lower/raise movement of the dummy sector ceil/floor)

To scroll 128 units set the action line length to 32 and lower the dummy sector floor by 128.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...