☀️ Tank lessonshow our diep.io tanks do what they do
Lesson 05

Eyes that watch

An auto turret turns toward the nearest enemy. Make its disc the eyeball and let the pupil ride on it.

What you see

Two eyes that look at whatever comes near, pupils and all, with no gun on them.

The trick

Each eye is an auto turret that turns to the nearest enemy; the pupil rides itenemyeye: an autoturretpupil: rides the turret,looks where it looks

An auto turret always turns toward the nearest target inside its Range and Arc, whether or not it carries a weapon. So a turret with nothing on it but a part is a part that watches. Set the disc's Base size and Base color to make it the white of the eye, and put the pupil on the turret, a little ahead of its centre, so it points where the turret looks.

Numbers that matter

FieldValueNotes
Base size16 (30 for a big eyeball, 1 to hide a disc)The disc's radius
Base colorWhiteThe eye's white; the pupil is Border grey
Arc900 lets it turn all the way round; a tiny arc (5) pins it
Range1700 default0 switches tracking off (lesson 07 uses that)
Pupil Offset X6Ahead of the pivot, so it reads as a glance

Gotchas

Where we used it

Babayaga: eyes that track
Babayaga: eyes that track
Dracula: eyes under the widow's peak
Dracula: eyes under the widow's peak