S
S
snow8823135782020-05-16 15:28:16
Game development
snow882313578, 2020-05-16 15:28:16

How to make a game of man control and point-to-point movement?

Hello everyone, I have a very important question for me: how to make a game on the Unity engine
2d game to control little men, give them tasks and they perform them like games, for example:
Basement, Life is Hard and others.

For example, there are 2 residents, you click on one and click on any place and he goes there.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Kuusandr, 2020-05-16
@Kuusandr

For example something like this.
The player on the map calls tasks. Dig, build, attack, etc. Tasks are saved in a list and sorted by priority, labor intensity, etc.
The bot, based on its coordinates and state (wounded, active, resting, eating, etc.), selects a certain number of tasks, by range, by priority, by "labor intensity", copies it to the stack, and starts to execute them. The route of movement can be used algorithm A *

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question