Hello!
Newbie user here~ just want to ask what will be the logic/event processing if i want to make a certain sprite do a random movement.
The Idea is for a idle village type of game, so the villagers will be moving randomly around the village without fixed direction (well maybe it will have a fixed movement once a parameter is met like if its hungry it will go to a food source).
I was thinking it'll be like:
for X: floor(random(8))*choose(1,-1)
for Y: floor(random(8))*choose(1,-1)
then increasing the numbers for bigger movements.
I just can't fully wrap around my head on the events and processing script (im not good at programming as well). T_T
Hope to have some helping hands and some theory so i can reverse-engineer it.
Thanks for reading this post!
This is a simple example of a random move that requires a minimum of resors. but this is not suitable for intelligent units, only zombies or other stupid enemies can move like this.
File *.c3p
If you need a really smart unit, you'll have to build a smart script that will control it and drive it along routes depending on the time of day, for example, and its other needs. It is more difficult to create a competent AI than a protagonist.