Master Cabalist
Member
Hi
I'm a little confused about how with and other work. I wrote the following code:
I want the player to click on a brain and the collision line to push the enemy brain backwards. But instead of that, what is happening is the bat itself moves.
The about event is in the Step Event of the WindBatObjecft.
I'm a little confused about how with and other work. I wrote the following code:
Code:
if (mouse_check_button_released(mb_right))
{
sprite_index = WindBatAttack;
if (collision_line( x, y, mouse_x, mouse_y, BigBrainObject, false, true ))
{
x += 300;
sprite_index = WindBatStill;
}
}
The about event is in the Step Event of the WindBatObjecft.