Remember me
You are here: HomeForumCyberix3D ForumGeneral DiscussionCode Block "Impulse"
Welcome, Guest
Username: Password: Remember me

TOPIC: How can I make a nextbot

How can I make a nextbot 3 weeks 1 day ago #3372

  • ozumi
  • ozumi's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
How can I make a nextbot that will chase the player?
The administrator has disabled public write access.

How can I make a nextbot 3 weeks 1 day ago #3373

  • cyberix3d
  • cyberix3d's Avatar
  • OFFLINE
  • Administrator
  • Posts: 706
  • Thank you received: 699
Hello Ozumi,

You can check out this zombie example:
The zombie will approach only when the player is nearby.
www.gamemaker3d.com/player?pid=01641983

Here’s a brief explanation of the code blocks:
• The zombie constantly calculates the distance from the camera (player).
• If the player is within 200 units, the zombie rotates to face the player, moves toward them, and plays the “walk” animation.
• If the player is farther than 200 units, the zombie stays idle and plays the “idle” animation.

Feel free to view the source code for more details.

Best regards,
The Cyberix3D Team
The administrator has disabled public write access.
The following user(s) said Thank You: ozumi
Time to create page: 0.119 seconds