Monday, 15 January 2018

Week 16

Week 16


HND Project

This week, I was preoccupied with a few of my assignments for my tutors James Tedder and Wayne Gallear. As such, I could unfortunately, not get much done with my Project this week. I did, however, played around and tinkered with it somewhat. As a result, I did manage to create a HUD crosshair for the Project. I began by looking for images online and found one in Google images.


After saving it and importing it into the Project, I then created a “Widget Blueprint” in the “Content Browser” under the “User Interface” section. Opening that up, I then dragged a “Image” box onto the screen and placed it in the middle of the screen, with the help of the “Anchor” tool. The then set the size to “64”x”64” and inserted the image of the Crosshair into the “Image” box.



I then realigned the “Image” box using the Alignment X and Y. Then, before I continued I went into the “Graph Event” of the “FirstPersonCharacter” and created a new “Function” named “CreateHUD”. Then made the following script for my Crosshair HUD to appear on the screen. “Create Hud” > “Create Hud Widget” > “Add To Viewport” in the “Create Hud” function and then in the Player’s “Event Graph”, I created a small blueprint that goes by “Event Begin Play” > ”Create Hud”. 






No comments:

Post a Comment