Tutorial on how to To Extenda Scaleform HUD(Actionscript 2 HUD) via Unreal Script in UDK

Posted: Aug 17, 2010 |Comments: 0 | Views: 598 |

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 :)

Questions and Answers

Ask
200 Characters left
Rate this Article
  • 1
  • 2
  • 3
  • 4
  • 5
  • 0 vote(s)
    Feedback
    Print
    Re-Publish
    Source:  http://www.articlesbase.com/computers-articles/tutorial-on-how-to-to-extenda-scaleform-hudactionscript-2-hud-via-unreal-script-in-udk-3064670.html

    Article Tags:

    unreal development

    ,

    how to udk

    ,

    3d tutorials

    ,

    3d tuts

    ,

    tutorials

    An in depth look at the new MMORPG from Blizzard Entertainment known as Diablo III, a long awaited release for Diablo fans.

    By: swtorman90l Computersl Jun 01, 2012

    Most small businesses take advantage of computer technology, and it certainly can make things a lot easier for everyone within the business when you do so properly. Unfortunately, there are also a number of different problems that can occur as a result of the technology that you are using.

    By: Jesus Mattsonl Computersl May 31, 2012

    For any restaurants, it is very important to have vigilant end to end point of sale and service. If someone is new to the business of making and serving meals, it's very important to have a clear cut observation on point to point service to sale.

    By: Jack Authorsl Computersl May 30, 2012

    Small business financial software plays a vital role in the operations of an organization especially the small enterprises. This is where you get the opportunity to keep the record of all the financial activities that are occurring in your organization.

    By: Chris Alexanderl Computersl May 29, 2012

    Wireless is one of the best ways in order to get internet to a laptop or a computer, but if you want to sell wireless items in the US or Canada, you need to be sure you pass the wireless testing and you get the FCC certification to prove it.

    By: Jack Bandyl Computersl May 29, 2012
    Matt

    At level 83 you have Healing Hands, this new healing spell is a short range AoE heal that will heal all party members within its radius and allows the Paladin to cast another heal spell while it is still active. Talk about mass heals; this is something that Paladins have been waiting for, for a long time. Finally at level 85 you have Guardian of Ancient Kings; Pallys get a helping hand with this spell. It summons a winged guardian of light that is armed with a massive sword.

    By: Mattl Computers> Computer Gamesl Feb 12, 2011
    Matt

    You may have to make a couple of side trips along the way to grab the next stage quests, but Blizzard has conveniently placed many of the quest chains on top of each other to make it much faster and easier to level up without having to run all over the place. You should complete all of the quests in one zone before moving on. Be aware that as you level you may have to go back to an area that you were working in earlier.

    By: Mattl Computers> Computer Gamesl Feb 12, 2011
    Matt

    No matter which faction you play in World of Warcraft, leveling your character can go one of two ways, you can slowly grind your way along one level at a time until you give up in frustration or you can follow a few good Horde leveling tips and learn how to power your way through the levels to the top. None of these tips are big secrets, most of them are just basic common sense, but when followed will speed up the leveling process significantly.

    By: Mattl Computers> Computer Gamesl Feb 12, 2011
    Matt

    This is probobly the best way to watch movis online for free which acctually works, this isnt one of those articles that tells you to go and by something because when i say its free i meen its free!

    By: Mattl Arts & Entertainment> Moviesl Sep 06, 2010
    Matt

    In this tutorial i will be telling you how to watch movies online for free full movie without downloading them at all, by streaming movies over the interner will not use up hard drive space.

    By: Mattl Arts & Entertainment> Moviesl Sep 04, 2010 lViews: 120

    Discuss this Article

    Author Box
    Articles Categories
    All Categories
    Quantcast