Game Maker 8.1: How to Make Monster Patrol Area, then Follow You?

Channel:
Subscribers:
268
Published on ● Video Link: https://www.youtube.com/watch?v=FD__vHq622A



Duration: 17:43
57 views
0


Visit my MC ANIME site: https://mcanime1.wixsite.com/mcanime

Paypal Donate: https://bit.ly/30e8VDZ

GM81 File: https://bit.ly/3pbvEKQ

Note: obj_when_cross_line, be sure its not visible or solid, so you don't stop at object that is not visible. When player cross the line, it will make Monster change direction and come toward you. The follow code is only in the Monster object that comes toward you, not the right or left sided Monster patrolling area. You also can't shot Monster that is patrolling area, because he is out of range, only when you cross line you can fire weapon,and kill the Monster that comes toward you. Timer will not work on Monster. Well it works at first, then Monster starts to move toward wall, then goes through it. Need to use a block object that is not visible, but solid, so the Monster can which images and move in the other direction. This will not effect player when coming in contact with block object that is solid. Player will go past it without stopping. It only applies to Monster right and left objects.







Tags:
windows
pc
computer
fake
3d
first
person
monster
follow
patrol
area
make
create
find
search
how
teach
show
learn
do
try
game
maker
you
cross
line
bounce
set
direction
var
draw
texture
tex
instance
image
index
global
camcos
sprite
camsin
point
distance
exit
camx
camy
change
dir
solid
block
visible
not
force
move
left
right
toward
animate
animation
speed
variable