To get more into the engine I wanted to make a simple tetris game after completing the c++ programming tutorial series.
I have my own fieldpoint objects that contain a staticmeshcomponent and some ints/bools for game information.
Now I wanted to make my field as an array of these objects but I can’t manage to find the correct way to instantiate them in the constructor of my field class.
When I use World->SpawnActor a fieldpoint object is spawned but I have no reference to it, so I can’t use it in the field class anymore. With CreateDefaultSubobject I can’t get it working at all.
These are the methods I got to know from the c++ programming tutorial series.
Any idea for a solution for this?
Thx already.