โ† Back to Courses
โšก JavaScript ๐ŸŒฑ Beginner โšก 45 XP โฑ 7 min โญ Premium

Running Away or Patrolling

๐Ÿ“‹ Instructions

Some enemies run AWAY (the opposite of chasing). Others PATROL back and forth guarding an area.

Flip the chasing logic to make an enemy flee, or use a counter to make it patrol.

๐Ÿ”’

The code editor and XP reward for this lesson are part of Premium.

Unlock Premium
๐Ÿ”’

This is a Premium Lesson

Subscribe to unlock the interactive code editor, run your own solutions, and earn XP for this lesson.

โญ Unlock Premium