Friday, March 1, 2013

Getting Flash to Talk to UDK - part 1

Introduction -

I've been working on different Flash UIs in UDK for a few months now, and the evolution of what I could do before to now is pretty astounding. This is my third foray into the world of Scaleform and I have to say that I am feeling better and better about what I am doing.

My goal with this next series of posts will be to detail HOW I got Flash to work with UDK, and then go into what I did in Flash and what I did in UDK.

If anything, I'm hoping that I can have a series of tutorials that will guide would be newbie UI creators into what its like to create a HUD in Flash for use in their own UDK game.

There will be certain assumptions made during this process:

1) I assume that you have Flash. This is unfortunately an expensive requirement. Luckily, if you are a student, you can purchase Flash Professional 6 for $200. Or, if you are taking a one month class, you can "rent" flash for $20 a month.

2) I assume that you have a pretty recent version of UDK installed. As far as I am aware, this will work on version of November 2012 and February 2013. Those are the two version I've been using on these projects. This could work with an earlier version, but I have no guarantee of that.

3) I assume you have a good script editor for coding uScript. I use Note++. Some people use different IDEs, but I tend to hate how big they are. Note++ is fast, and does what I want it to do.

4) I assume you have done something in UDK and Flash before. Though I will do my best to tackle all that is absolutely necessary.

5) I assume basic coding/scripting and computer knowledge. If you have never scripted before, this may not be a good entry point. I will do my best to cover what is needed.

6) I assume you have an image editor that can output PNG files. Such as paint.net, gimp, or Photoshop. This tutorial will NOT cover this at all. The focus here is for Flash to UDK communications.

Setting Up Flash -

Setting up your Flash work environment is very important. Though future version of UDK may be able to work with Actionscript 3, the current set up, as far as I am aware, requires Actionscript 2.0 and Flash 8. This limits what can be done a bit, and also makes something more difficult. When looking for hints and additional help in Google, remember to ad AS2, Actionscript 2.0 or Flash to UDK to whatever it is you are searching for.

Under File, go to Publish Settings, and click the second tab on that option dialogue that opens up. Set the player version to Flash 8 and set actionscript to 2.0. It should be okay to leave the rest alone.



Next, you need to set up the canvas. The canvas should be at 30 fps, and the size I use is 1980x1080 (in uScript, you'll be making it scale). The size of all object should be to the power of 2 (2, 4, 8, 16, 32, 64, 128, 256, 512 etc). This is because UDK deals with it better. Example make an image 64x128.

I'll begin by adding base functionality to the menu, and once we have it working we'll move on to connecting it with UDK through uScript. Note, that my set up is different, as I own Flash on a Mac, and cannot test the way you could if you had it on a PC.

Creating the Flash file will be on the next installment.

Wednesday, January 30, 2013

Thursday, January 24, 2013

Current Project - Tetrahedron Twister

So I put up a link to my prototype a while back, Tetrahedron Twister. Well, proof of concept is more like it. Thing is, that it was pretty broken. Couldn't play more than one game without freaking out and what not.

Thing is, I wrote it in javascript using the perlenspiel framework. What I'm working on from here is to take that, and move it to Game Maker. The move is a bit harder, because I'm having to learn how Game Maker works while doing work, school work and other projects. So the going is a bit slow, but I'm making progress.

The key here is that I couldn't take the code, or even some of the concepts, because they work slightly differently. Those are the things that are slowing me down a bit.  Not to mention I'm trying to brainstorm ways to improve on the coding.

The other thing I need to get info on is what will I do to sell it. Do I need to form an LLC? What does that take? The business aspect of it, feels daunting to be tackling alone.

Once I get the game to alpha, I'll look into doing more things with it. I'll keep things up to date here.

Thursday, December 27, 2012

SWTOR: F2P

This is a difficult discussion to have at this very moment. As it is, F2P in SWTOR is in a state of flux, and they are slowly granting the Preferred class of players more for having spent money. Essentially, a Gold Membership still have the best deal, if you are going to be doing EVERYTHING in SWTOR, otherwise, you can piecemeal yourself the aspects of the game that you want.

The issue is that for a while, if you weren't Gold, you might as well not even bother. But they are changing that. As a note, I spent $5, to get Preferred status. That means I get several bonuses, as well as unlocking some cosmetic functionality (legacy name display, for example).

Things I don't like in the game, are things like, having to unlock the ability to wear Purple gear (unnecessary as it may be, it limits what I can get from the game). As well as unlocks for accessing certain gear. Even your partner's skin requires an unlock to use, and to even get at one point! That's right, there are rewards you cannot pick up unless access to it is unlocked. And you can't even unlock it later to use in most cases!

That aside, they have quite a few cosmetic items, which I'd be interested in, if I invest enough into the game to get to level 50. The game is quite playable for free, but I suggest dropping at least $5, even early on, to get the preferred member status.

Also, though the limit is only 2 characters, you can make 2 characters per server, so it is quite possible to negotiate all the storylines. As far as I can tell, members to go from Gold to F2P will keep their characters, but only 2 can have items bought for them. I would need further testing though, and I just didn't have the money to test it out.

If you like the game, I suggest getting the $5 bonus pack they sell in the cartel store (gives a lot of little trinkets, a ride, and gives you preferred status).

Monday, November 19, 2012

Overwhelming Schedule

I'm going to be taking a break for the holidays. Between work and now 2 high speed classes to attend, I simply don't have much time for anything else. I think that after the holidays I'll have more time to devote to side projects. See you then!