Flipping DT_Sprite texture via code?

Discussions about Coding and Scripting

Flipping DT_Sprite texture via code?

Postby LannFyre » Tue Nov 15, 2016 8:30 pm

Is there a way to flip a texture, while it is applied to an actor? I have textures assigned:
Code: Select all
   Sprites[0].WalkForward[0] = Texture'RPG_Test_Sprite.DownWalk3';
   Sprites[0].WalkForward[1] = Texture'RPG_Test_Sprite.DownWalk4';
   Sprites[0].WalkForward[2] = Texture'RPG_Test_Sprite.DownWalk5';
   Sprites[0].WalkForward[3] = Texture'RPG_Test_Sprite.DownWalk6';
   Sprites[0].WalkForward[4] = Texture'RPG_Test_Sprite.DownWalk7';
   Sprites[0].WalkForward[5] = Texture'RPG_Test_Sprite.DownWalk8';
   Sprites[0].WalkForward[6] = Texture'RPG_Test_Sprite.DownWalk1';
   Sprites[0].WalkForward[7] = Texture'RPG_Test_Sprite.DownWalk2';

But was wondering if I could get flip them in an actor's code. The DrawType of the actor is DT_Sprite.
<<| http://uncodex.ut-files.com/ |>>

Code reference for UGold, UT99, Unreal2, UT2k3, UT3

Additional Beyond Unreal Wiki Links
wiki.beyondunreal.com/Legacy:Console_Bar
wiki.beyondunreal.com/Exec_commands#Load
wiki.beyondunreal.com/Legacy:Exec_Directive#Loading_Other_Packages
wiki.beyondunreal.com/Legacy:Config_Vars_And_.Ini_Files
wiki.beyondunreal.com/Legacy:INT_File
User avatar
LannFyre
Skilled
 
Posts: 233
Joined: Sun Dec 28, 2014 1:10 am
Location: Anubitek

Return to Coding, Scripting

Who is online

Users browsing this forum: No registered users and 1 guest