Docs Cookbook
Enemy that chases
Place the enemy. What is it? ▸ Enemy, Type Chaser.
#Without code
- Place the enemy. What is it? ▸ Enemy, Type Chaser.
- Its Character card: Start from a role (Melee fighter, Brute, Pack hunter…).
- Tune Notice range, Speed and Attack damage (Chase player).
- Give it Health / breakable so the player can defeat it (Health, When defeated).
#Quick code
Where it goes: on the enemy, Event: Player enters the world.
while self.exists do
if self.distance(player) < 6 then
self.follow(player, 3, 1.2)
if self.distance(player) < 1.5 then hurt(5) wait(1) end
else
self.stop()
end
wait(0.1)
end
Get an email when Voxel Game Maker launches
It's coming to Steam with a launch discount. One email on launch day, the odd progress update, nothing else.