From 34be958e8a01c9eecd7fb96e0a1dece6526c65c3 Mon Sep 17 00:00:00 2001 From: Jesright73 <79653967+Jesright73@users.noreply.github.com> Date: Tue, 1 Mar 2022 21:55:07 -0500 Subject: [PATCH] update gamma --- Export_Code/gml_Object_oMGamma_Other_10.gml | 3 +++ Export_Code/gml_Object_oMGamma_Step_0.gml | 7 +++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Export_Code/gml_Object_oMGamma_Other_10.gml b/Export_Code/gml_Object_oMGamma_Other_10.gml index c9dd6b04..56ea5786 100644 --- a/Export_Code/gml_Object_oMGamma_Other_10.gml +++ b/Export_Code/gml_Object_oMGamma_Other_10.gml @@ -63,6 +63,9 @@ if (myhealth <= 0) instance_destroy() } global.event[331] = 3 + xVel = 0 + yVel = 0 + speed = 0 state = 20 statetime = 0 sfx_play(sndMGammaDeath) diff --git a/Export_Code/gml_Object_oMGamma_Step_0.gml b/Export_Code/gml_Object_oMGamma_Step_0.gml index 0f729886..4b67e74a 100644 --- a/Export_Code/gml_Object_oMGamma_Step_0.gml +++ b/Export_Code/gml_Object_oMGamma_Step_0.gml @@ -564,9 +564,9 @@ if (state == 20) facing = 1 else if (x > 304) facing = -1 - if floor(distance_to_point(304, 432) != 0) + if floor(distance_to_point(304, 432) > 0) move_towards_point(304, 432, 1) - if floor((distance_to_point(304, 432) == 0 || statetime == 600)) + if floor((distance_to_point(304, 432) < 1 || statetime == 300)) { x = 304 y = 432 @@ -603,5 +603,8 @@ if (myid == 52 && global.event[331] >= 3 && (!dead) && state < 20) myhealth = 0 state = 20 statetime = -1 + xVel = 0 + yVel = 0 + speed = 0 dead = 1 }