Post

Visualizzazione dei post da dicembre, 2017

Collecting resources

Immagine
I'm finally back to programming after some time spent with 3D modeling, printing and a hard disk failure that forced me to re-install everything, including Unreal Engine and Visual Studio, with all the troubles of importing the project in a new environemnt (I tried to switch to VS 2017 and UE 4.17, but I reverted back to VS 2015 and UE 4.15 after several compilation fails). And the next thing I'm going to handle is the raw material for building our mines and for repairing the spaceship: collecting resources! To display and manage resources we're going to use many techniques we already used for enemies. It's actually even simpler, because a resource will spawn at a location and never move until it's collected from either the player or an enemy. As a first step, I imported the asset I created in Blender (my floating potatoes): Then I created a C++ class named "ResourceClass", and I derived a Blueprint Class from it so we can easily add multiple ...