Hey guys I am having some trouble with tds AI, I cant figure out how to make them follow the nearest path. Here's what i have so far,
[codebox]if distance_to_point(path5.x,path5.y) >= 250 && distance_to_object(player) >= 100
move_towards_point(path5.x,path5.y,2)
else
if distance_to_point(path5.x,path5.y) <= 25 && distance_to_object(player) >= 100
path_start(path5,2,0,0)[/codebox]
As you probably noticed it pops an error on .x because well path5 is not an object, any ideas?
- Game Maker Community
- → Viewing Profile: Topics: sonicaj
sonicaj
Member Since 02 Jan 2007Offline Last Active Oct 04 2011 03:47 AM
Community Stats
- Group New Member
- Active Posts 200
- Profile Views 1179
- Member Title GMC Member
- Age 19 years old
- Birthday July 25, 1993
-
Gender
Male
Topics I've Started
Tds Ai Finding Nearest Path
26 May 2010 - 04:35 PM
Walk Arounds With Paths
26 August 2009 - 04:32 PM
i want the zombie to walk around other zombies/walls so they dont get stuck/pile heres my attempt [codebox]if distance_to_object(obj_zombie) > 15
path_start(path0,3,3,2)[/codebox]they go to the path but i need them to stay were they are and use the path but when they do hey jump to the top right and use the path im sure its a very simple fix so yea... as you can tell im not use to coding paths but if you could help me out that would be great
path_start(path0,3,3,2)[/codebox]they go to the path but i need them to stay were they are and use the path but when they do hey jump to the top right and use the path im sure its a very simple fix so yea... as you can tell im not use to coding paths but if you could help me out that would be great
Mplay Or 39dll Help
31 July 2008 - 12:08 AM
hello i am trying to make a topdown style game online and i cant find a tutorial for 39dll or mplay if anyone knows the 39dll or mplay good if you could help me program it that would be great thanks.
I Need Char Sprites
31 May 2008 - 02:48 AM
style: Pirate.
view: birds eye (with hat,without hat and can see his/her legs and arms only a little).
size:20 by 20 is fine.
color:pirate like,run down.
animation:walking and attacking with a sword,a gun to would be nice if you can.
direction:just one way and ill just use the image_angle.
if you want to sprite for this game more pm me i need some one to sprite im not very good at it how ever i have the ships
done and if you can help me sprite the many other things pm me please.
oh yea and i need a water background 3200 by 2400 if you can make it move great i need tit to move thanks.
view: birds eye (with hat,without hat and can see his/her legs and arms only a little).
size:20 by 20 is fine.
color:pirate like,run down.
animation:walking and attacking with a sword,a gun to would be nice if you can.
direction:just one way and ill just use the image_angle.
if you want to sprite for this game more pm me i need some one to sprite im not very good at it how ever i have the ships
done and if you can help me sprite the many other things pm me please.
oh yea and i need a water background 3200 by 2400 if you can make it move great i need tit to move thanks.
39dll
30 May 2008 - 09:41 PM
yea i need a tutorial i have never done online programing and i cant find a tutorial for it if anyone has made one please put a link here.or a mplay tut what ever i could use for a game to host 50+ ppl.
- Game Maker Community
- → Viewing Profile: Topics: sonicaj
- Privacy Policy
- GMC Rules and Forum Rules ·



Find content