Tuesday, 25 March 2014

Final Major Project [Post 7] ~ Lighting Update

I found a reasonably easy tutorial online that got the torch working with the desired movement by adding a light as a weapon. It does require some coding, but the tutorial supplies you with all the code needed so it isn't too bad.

I think that I will have to include a note in my files when I hand in this project to uni, instructing to put the extra file into the UDK folder, otherwise my torch will not work and the player won't be able to see anything in the level.

The code that was supplied in this tutorial created an error when I tried opening UDK, which admittedly made me panic a little at first as I have no experience with game coding. However, I read the error message and figured out for myself that one of the lines of code was on the wrong line. The message was asking me to provide a name for the new "weapon", which was on the line underneath, so I put the name on the same line of text and it then worked perfectly. I then used Kismet to attach this "weapon" to the player, and I haven't had any more problems with it since.

In the tutorial, it instructs to remove the player HUD using Kismet, but I found that when I did this, none of my additional text that appears on screen shows up, so it must be part of the HUD. Unfortunately, I don't think I can remove the HUD and have text on screen at the same time, and I feel that the additional text on screen makes my level more like a game as it instructs the player and tells them that a door is locked or that they need to find a certain item in order for something to work.

No comments:

Post a Comment