Remember me
You are here: HomeForumCyberix3D ForumReport a bugUpdate plugin Error #1063
Welcome, Guest
Username: Password: Remember me

TOPIC: How can I make a nextbot

How can I make a nextbot 4 months 7 hours ago #3372

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

How can I make a nextbot 4 months 2 hours ago #3373

  • cyberix3d
  • cyberix3d's Avatar
  • OFFLINE
  • Administrator
  • Posts: 726
  • Thank you received: 727
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.287 seconds