diff --git a/objects/obj_bullet.object.gmx b/objects/obj_bullet.object.gmx index 4950851..dffac59 100644 --- a/objects/obj_bullet.object.gmx +++ b/objects/obj_bullet.object.gmx @@ -25,7 +25,36 @@ 1 - image_speed = 0; + step_counter = 0; +image_speed = 0; + + + + + + + + 1 + 603 + 7 + 0 + 0 + -1 + 2 + + + self + 0 + 0 + + + 1 + step_counter ++; + +if(step_counter == 60*room_speed) +{ + instance_destroy(self); +} diff --git a/objects/obj_player.object.gmx b/objects/obj_player.object.gmx index 974014a..30936ad 100644 --- a/objects/obj_player.object.gmx +++ b/objects/obj_player.object.gmx @@ -153,6 +153,7 @@ speed += 5 1 var new_bullet = instance_create(x,y,obj_bullet); new_bullet.image_angle = image_angle; +new_bullet.direction = image_angle; new_bullet.speed = speed + 1; diff --git a/sprites/spr_bullets.sprite.gmx b/sprites/spr_bullets.sprite.gmx index 314cf82..202decd 100644 --- a/sprites/spr_bullets.sprite.gmx +++ b/sprites/spr_bullets.sprite.gmx @@ -2,7 +2,7 @@ 0 0 - 0 + 16 1 0 0