Hello, I'm new and have decided to make a Pacman-style game after playing Pac-Stan. In order to move my monsters, I'm looking to use MoveEntity within a HookRendered function. Something like
void MoveMonsters
{
string directions
string move
for every monster m
{
if(m is not moving)
{
directions = tag of tile monster is standing on
look at directions to see valid directions
move = pick one at random
MoveEntity(m, move)
}
}
}
within the tag would be string like "L4U2D7" and picking a direction at random would involve taking a random part of the string out.