Tutorial on how to To Extenda Scaleform HUD(Actionscript 2 HUD) via Unreal Script in UDK
Tutorial on how to To Extenda Scaleform HUD(Actionscript 2 HUD) via Unreal Script in UDK
Morning and welcome this tutorial is going to be about displaying your scaleform heads up display in UDK via Unreal Script.
What you need:-
* Easy knowledge of UnrealScript
* UDK July Build
* A Building Level (nFringe)
Part 1:
// class UsingFlashHUD extends HUD;
var FlashHUD MyHUDMovie;
var class MyHUDMovieClass;
var YourPlayerController ActualPlayer;
simulated function PostBeginPlay()
super.PostBeginPlay();
ActualPlayer = YourPlayerController(PlayerOwner); // Cast to your PController Class if you have one
MyHUDMovie = new MyHUDMovieClass; // To create objects trough new we need a class variable pointed in the head *
MyHUDMovie.PlayerOwner = ActualPlayer; // Sets the player that will see the movie
MyHUDMovie.SetTimingMode(TM_Real); // Sets the timer
MyHUDMovie.Start(); // Play and show the movie on the screen
MyHUDMovie.SetViewScaleMode(SM_NoScale); // This prevents movie stretching you can test with the other GFxScaleModes if you preffer
MyHUDMovie.SetAlignment(Align_BottomCenter); // Great function, contain the most used alignments and is resolution independent
DefaultProperties
MyHUDMovieClass=class’Folder.FlashHUD’ // Point to where you are storing your FlashHUD class and the other classes files
Stage 2:
// NEW FILE! FlashHUD.uc:
class FlashHUD extends GFxMoviePlayer;
DefaultProperties
bDisplayWithHudOff=FALSE
MovieInfo=SwfMovie’Folder.Package.Group.YOURSWF’
Stage 3:
// CHANGE! On YourGameInfo.uc
class YourGameInfo extends GameInfo;
DefaultProperties
HUDType=class’Folder.UsingFlashHUD’ // also toggle Off the UTHUD in case that you’re extending from UTGame
Tips on your Flash Movie:
- Keep your Document scale below your pc’s minimal game resolution (800×600 maybe) got the impression that whilst we deal with the Noscale flag the engine or gfx will scale it down if it is larger than the drawing area
Also Danke To creasso at the UDK website for this post
Well there you have it a UDK Tutorial
Thanks all
Learn some great ways of creating some remarkable 3d models and images, also learn some more UDK go to Unreal Development part of my website
.
Article from articlesbase.com
Related Actionscript Articles

You must be logged in to post a comment.