Firstly, I’m not a very strong programmer so I’m assuming I’m missing something simple here.
I’m working on building a Tic Tac Toe game. Currently the player can place crosses on the board, and are informed when they place 3 in a line via the log. However I am getting stuck on triggering an end of game event.
My system includes 9 instances of a GridSquare bluepirnt which controls placing pieces onto the board. When a piece is placed it spawns an actor, then reports it’s location to the logic blueprint.
The logic blueprint checks to see if the placement has caused the game to be won. If it has been, it messages the log saying thus and calls the EndGame function via an interface message. The target is currently set to a blueprint variable defaulted to the GridSquare blueprint.
My grid square blueprint contains an EndGame event connected to a DeleteActor node targeted at the spawned actor.
However, it seems like the EndGame event happens. The end game log fires but all the pieces remain. I suspect that the target for the EndGame call in logic is wrong, however since I can’t target all 9 actors at the same time I’m not entirely sure what the best option is.
I’ve put my project up on the dropbox under ChrisMorris if my description is lacking in detail.
Thanks!