1) Currently I am having issues with getting an enemy's sprite animation to change based on it's direction OR based on the orientation of another object (player character). I'm pretty bad at reading//writing code so if you could help me based on the GM 8 Pro drag n' drop icons, I would appreciate that very much.
2) How do I add "items" to a "chest"? And then if there were two chests, 1 would have a... health potion, while the other a set amount of money.
*solved*
move_towards_point(obj_player.x,obj_player.y,2.);
if distance_to_object(obj_player) < 2
{
speed = 0;
}
in an attempt at having the enemy move towards the player character but to stop before it gets there... well that's not happening at all. It moves into the player character and gets stuck. I have even set up a collision event test in an attempt at getting it to test it's orientation relative to the PC but that's not working either
*solved*
if keyboard_check(vk_space) && can_attack = true && distance_to_object(obj_enemy) < 1
*solved*
*solved*
*solved*
if health < 1
{
instance_destroy() //not working as intended
can_attack = false //not working as intended
}*solved*
Edited by XxTaLoNxX, 04 June 2011 - 06:41 PM.











