ragingdemonz
Member
Hello there i seem to be having a problem with instance_place collisions. I've decided to move away from the collision events and move everything over to the step event.
I've run into a small issue however. Back then when i used the collision event. I would change the image_xscale of a hitbox to get accurate hit detection. But i can't seem to replicate that effect now.
Whenever the player is facing right the hit detection works perfectly. However when the player is facing to the left and the image_xscale is flipped the hitbox detection still occurs as if the player was still facing right. Now this only happens when the player is close enough to the enemy and acts as if hitbox was not flipped.
Here's my code and how i've set it up, as in the help file. Is there something i'm missing here?
I've run into a small issue however. Back then when i used the collision event. I would change the image_xscale of a hitbox to get accurate hit detection. But i can't seem to replicate that effect now.
Whenever the player is facing right the hit detection works perfectly. However when the player is facing to the left and the image_xscale is flipped the hitbox detection still occurs as if the player was still facing right. Now this only happens when the player is close enough to the enemy and acts as if hitbox was not flipped.
Here's my code and how i've set it up, as in the help file. Is there something i'm missing here?
Code:
var hitbox=instance_place(x,y,hitter)
if hitbox!=noone
{
do this
}