In this Game Maker video tutorial you will learn how to use a step event in GameMaker 8 to create a loop that continually checks the location of an object and has another object move toward it.


(credit MrSRIsaacs)
|
|||||
Make monsters move towards your playerIn this Game Maker video tutorial you will learn how to use a step event in GameMaker 8 to create a loop that continually checks the location of an object and has another object move toward it.
(credit MrSRIsaacs) 4 comments to Make monsters move towards your player |
|||||
|
Copyright © 2012 GameMaker Video Tutorial - All Rights Reserved | RSS 82 queries. 0.336 seconds. |
|||||
Hi i did what you do here, but know i have a problem, i have a plataform game here, so if i jump, he fly xd
and another problem is that if i kill the enemy it give me a error
ERROR in
action number 2
of Step Event
for object obj_enemy1:
Error in expression:obj_player.x
position 12: Unknown variable x
did you name the object that was being chased did you name it on the move toward the same as the actual object coz you could have the thing being chased called “bob” and the move towards object2
Hm, dosn’t really work for me. All that happens is that the “teacher” is running to the upper left corner.
How can i create an object that moves towards her when she gets closer?