A video showing how to create an 3D AI that detects the presence of a player and finds a path to him, works in Godot version 3.5
Want to know more about me? Here are some links to my accounts:
Twitter:
My website:
Facebook:
Link to my games:
And this is the script I used:
extends KinematicBody
#gravity
var gravity = 15
#idle rotation
var xlocation = rand_range(-360,360)
var zlocation = rand_range(-360,360)
#folowing player
var harass = false
#player escape event
var player_escape = false
#face direction of player
onready var target = get_parent().get_node(“Player“)
var rot_speed =
#map navigation
onready var agent : NavigationAgent = $NavigationAgent
onready var target_location : Node = $“../Player“
var speed = 5
var m
1 view
240
60
1 month ago 00:03:07 1
5 Months in Tutorial Hell: What I Learned
2 months ago 00:03:32 3
Какая недвижимость подходит для получения турецкого гражданства?
2 months ago 01:37:32 1
Samurai Jack: Battle Through Time Часть 5 ФИНАЛ - АКУУУУУУУУУУУУУУ!!!!!!
2 months ago 00:26:58 1
How Good Can I Make Godot Look 2 - The Cellar
2 months ago 01:20:04 1
Юрий Батурин о Навальном и Юлии Навальной, о России, Украине, СВО, мигрантах, о любимой жене и сыне