My program doesn't have bugs. It just develops random features.

Legacy:Variable Panning Textures

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search

Ordinary scrolling textures are set with the panning Surface Flags (UT), and the speed is set over each entire zone in the ZoneInfo actors. Here's a way to work around this restriction, using the Screen component.

Ingredients[edit]

You will need the following elements:

ScriptedTexture[edit]

Use one of the ScriptedTexture (UT)s from the ScriptedScreen texture package. Apply this to the surface you want to scroll. Note that you can use this texture on as many surfaces as you wish, they'll all display the same thing.

ScreenSlidePage[edit]

Select the text below, copy, and paste into UnrealEd to get the settings.

Begin Map
Begin Actor Class=ScreenSlidePage Name=ScreenSlidePage0
    Text=""
    AlignHorz=SlideAlignHorz_Left
    AlignVert=SlideAlignVert_Top
    ClientWidth=256
    ClientHeight=256
    ClientPaddingTop=0
    ClientPaddingLeft=0
    ClientPaddingRight=0
    ClientPaddingBottom=0
    ScrollHorz=SlideScroll_None
    ScrollVert=SlideScroll_None
    EffectEntry=SlideEffect_SlideBottom
    EffectEntrySpeed=128.000000
    EffectExitSpeed=0.000000
    SlideNext=ScreenSlidePage'MyLevel.ScreenSlidePage0'
    Name=ScreenSlidePage0
End Actor
End Map

Set the following properties:

Category Property Value
ScreenSlide Background Desired texture.
ScreenSlide Palette Same as Background (to make the slide use the texture's actual palette rather than the default one).
ScreenSlide EffectEntrySpeed Desired speed in pixels per second.

Screen[edit]

Create a Screen actor and set the following properties:

Category Property Value
ClientScriptedTexture ScriptedTexture Set to the ScriptedTexture you selected in the first step.
Screen SlideCurrent Set to the name of the [[Screen ScreenSlidePage]] actor. Note: You can't do this with the Use button, you need to find out its Object -> Name property, remember it and type it into the Screen's property.