Spawn actors on pre made boards/maps
I have a game that I have been working on that takes a little bit of gameplay from an old Sega game called Pengo. I want to be able to push actors (blocks) that will be spawned on each level over a board with a grid system that was just drawn.
The blocks will do different things when they collide with enemies and other blocks. For example if the 3 or 4 blocks of any particular type collide with each other then they will either explode or change the way the board acts by either making the ground slippery or burn stuff. My biggest issue is constraining all of these attributes and rules to the actor that makes up the board. I cannot get the board to act as a guide that will only allow the blocks to move in a straight path along the grids.
The issues I am having are:
- I cannot get the actors to spawn in randomly within the grids in my levels in the game.
- I cannot get the actors to stop in grids when they make contact with other blocks without them sending them off the screen.
- I cannot get the blocks to tell whether or not they have connected 3 blocks or 4 blocks. I have all of the explosions and stuff working properly.