Learning how to integrate flash menus and UI with Scalefrom into UDK has been my focus this week. Since UDK provides official support only for Adobe Flash, I installed the CS4 version and managed to set it up with Scaleform.
Learning a little bit of ActionScript has been necessary in order to incorporate functionality to the buttons. First a new map was created in order to host the main menu for the game. In this map, the menu created in flash to shown once the level is loaded. The problems started once I tried to incorporate the functionality for the "Play" button. According to Unreal Developer Network , the UDK command line has to be invoked through "fscommand", so here is where we set the "open map" call. This would not work at all and after a lot of research, I found out that something has changed in UDK since the last months of the previous year. Since we already changed versions of UDK once, I did more a little bit more of research in order to find a workaround for this problem and finally did.
I had to create a new custom class, that would extend the GLX Movie Player Class (here is where the Scaleform code happens) and added to this new custom class the ability too invoke the command line by itself. So I went back to Flash and through ActionScript I send the parameters to this function, where they are executed; resulting on loading the map where the game is played. The same procedure will be utilized form the remaining parameters that need to be interchanged between this two entities.
For the next week, now the Scaleform interface is working, the main menu and the "food pile" HUD would have been created.
No comments:
Post a Comment