Generating tile grid
Hello, I am fairly new to Unreal Engine c++ programming and I am doing this to get started with something. I am trying to generate a tiled grid that will act like a game board similar to what you see in turn based Tactical RPG's like FF Tactics.
I have a "Tile" blueprint that inherits from StaticMeshActor which in turn inherits from AActor base class. What I am trying to do is generate the grid using this tile blueprint, instantiating them from code and storing them into a 2D array with their own properties.
Should I be using a custom c++ actor class to do this or is spawning the actor blueprint fine? For some reason the code I am using to spawn the tile actor is not working for me.
I am doing the following:
GameMode.cpp - Constructor
And then to instantiate the tile I am using this template I found made by Rama:
and im calling it like this:
I would be very thankful if someone could point me out where my mistake is, and what I should be aiming to do. Thanks in advance.
asked Mar 26 '16 at 06:36 PM in C++ Programming
Follow this question
Once you sign in you will be able to subscribe for any updates here