diff --git a/scripts/chStepSetSprite.gml b/scripts/chStepSetSprite.gml index ff75c09..123254a 100644 --- a/scripts/chStepSetSprite.gml +++ b/scripts/chStepSetSprite.gml @@ -3333,6 +3333,14 @@ if (state == SUPERJUMP && fxtimer == 0 && sjball == 1) { myspark.additive = 1; if (facing == LEFT && sjdir != 0) myspark.image_xscale = -1; } +if (speedboostFXTimer > 0 && facing == RIGHT){ + myspark = instance_create(x + 10, y - 12, oFXAnimSpark); + myspark.image_angle = 0; +} +if (speedboostFXTimer > 0 && facing == LEFT){ + myspark = instance_create(x - 10, y - 12, oFXAnimSpark); + myspark.image_angle = 180; +} if (state == RUNNING && speedboost && (fxtimer == 0 || fxtimer == 2 || fxtimer == 4)) myspark = instance_create(x, y - random(36), oSBSpark); if (onfire && fxtimer == 0) { if (mask_index == sMask1) { diff --git a/scripts/characterCreateEvent.gml b/scripts/characterCreateEvent.gml index 8f0bf14..4296b79 100644 --- a/scripts/characterCreateEvent.gml +++ b/scripts/characterCreateEvent.gml @@ -262,3 +262,4 @@ sidePressTimer = 0; airStoredXvel = 0; machball = 0; slideCooldown = 0; +speedboostFXTimer = 0; diff --git a/scripts/characterStepEvent.gml b/scripts/characterStepEvent.gml index 513c043..2a8f0ff 100644 --- a/scripts/characterStepEvent.gml +++ b/scripts/characterStepEvent.gml @@ -638,6 +638,7 @@ if (global.speedbooster && speedboost == 0 && dash == 45) { sjball = 0; charge = 0; sfx_play(sndSBSonicBoom); + speedboostFXTimer = 5; alarm[2] = 30; } if (state == SJSTART) { @@ -2641,6 +2642,7 @@ if (vSpin > 0 && vjump == 0 && state == JUMPING){ if platformCharacterIs(IN_AIR) { airStoredXvel = xVel; } +if (speedboostFXTimer > 0) speedboostFXTimer -=1; if (slideCooldown > 0) slideCooldown -= 1 if machball > 0 && state == BALL && (kRight > 0 || kLeft > 0){ if (airStoredXvel > 6 && kLeft > 0){