Post

Visualizzazione dei post con l'etichetta spaceships

User interface - Adding functionalities

Immagine
In the previous post we created the layout for our user interface. Before going on with the work on it, I want to add some useful stuff to C++ code. I decided to store all informations about the player status (health points, resources, etc.) in the PlayerController class, becuse it seems the most logic place for them. So I'm adding a bunch of new variables: lives:  the number of actual health points left; maxLives:  the maximum number of available health points (it's 3 for now); resources:  the number of collected resources; maxResources:  the maximum number of collectible resources (let's say it's our cargo space, and I'm setting it to 5 for now). All these variables are created with the UPROPERTY macro, so that they're visible from the Blueprints, and can be used to modify the User Interface widget. I'm also going to create some new UFUNCTION methods that will handle the events coming from the User Interface buttons: selectOpti...

Learning sources and inspiration

Immagine
Everything started with a Kickstarter project: "Learn To Make Video Games - Unreal Developer Course In C++" by Ben Tristem. I always looked at Unreal Engine with reverence, thinking it was a huge, powerful, inaccessible tool for professional developers and big software houses; but this project meant that everybody could have a chance to learn it, so I decided to support it. Bundled with it, was another course, the "Complete Blender Creator" by Ben Tristem and Michael Bridges, for 3D modeling. Both these courses are now available at Udemy, here are the links in case you're interested (just wait for the recurring Udemy discounts): https://www.udemy.com/blendertutorial/ https://www.udemy.com/unrealcourse/ I never used Blender before but I had some previous knowledge of  3D Studio Max, so I didn't have any particular problem learning the (not so user-frienldy) interface of Blender. After a couple of months I was able to create nice models, rig and...