S
shadowelite7
Guest
Earlier today I was watching the pt3 tutorial for enemies. I did everything correctly but I received errors. I rechecked if I had everything correct but I still received errors.
Here is the code along with the syntax error message.
here is the video link for reference. I am at 8:44.
Here is the code along with the syntax error message.
Code:
obj_enemy Event: Create at line 2, 1 : variable spd only referenced once
obj_enemy Event: Create at line 1, 1 : variable hp only referenced once
hp = 5;
spd = 1.5;
Code:
obj_enemy Event: Step at line 2, 3 : Got '{' ({) expected ')'
obj_enemy Event: Step at line 4, 3 : unexpected syntax error
if (instance_exists(obj_player)
{
move_towards_point(obj_player.x,obj_player.y,spd);
}
image_angle = direction;