Movement Test

In fact, there are few difficulties about the movement of the character, mainly in controlling the player not to move to the house.

I mainly use the method of controlling the range of the collision body, adding a collision point to the soles of the player’s feet. This collision point can only move in the area where the range of the collision body is increased. In this way, the range of the collision body can be controlled within the ground area, and the player can be restricted from moving to the wall.

This is the first test of the player’s move code.


After I changed the new game background, there was a problem with the player’s mobility.

The current system is that the camera moves with the player. When I changed the new system, I found that the camera would automatically jump to the middle of the scene at the beginning of the game, and then move with the player’s operation.

I found that when I dragged the character to the new starting point, I only dragged the player’s picture, but did not drag the player’s collision point, and the camera locked the player’s collision point, so this problem occurred. After discovering it, I typed the character into a group and drag it to the starting point again, and finally solved the problem.