From 2ae3cb131163ac477e5c9e185efda5fea9fd2f0e Mon Sep 17 00:00:00 2001 From: bdidk235 <53656028+bdidk235@users.noreply.github.com> Date: Sat, 29 May 2021 11:17:03 +0300 Subject: [PATCH] Trail Not Showing when Spirit is used with Debug Menu I was playing around with Debug Menu and I noticed the trail of the spirit was gone and I looked at the code to fix it. --- source/PlayState.hx | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/source/PlayState.hx b/source/PlayState.hx index f03f3e5..4601432 100644 --- a/source/PlayState.hx +++ b/source/PlayState.hx @@ -770,6 +770,15 @@ class PlayState extends MusicBeatState dad.y += 360; camPos.set(dad.getGraphicMidpoint().x + 300, dad.getGraphicMidpoint().y); case 'spirit': + if(FlxG.save.data.distractions){ + // trailArea.scrollFactor.set(); + var evilTrail = new FlxTrail(dad, null, 4, 24, 0.3, 0.069); + // evilTrail.changeValuesEnabled(false, false, false, false); + // evilTrail.changeGraphic() + add(evilTrail); + // evilTrail.scrollFactor.set(1.1, 1.1); + } + dad.x -= 150; dad.y += 100; camPos.set(dad.getGraphicMidpoint().x + 300, dad.getGraphicMidpoint().y); @@ -802,16 +811,6 @@ class PlayState extends MusicBeatState gf.x += 180; gf.y += 300; case 'schoolEvil': - if(FlxG.save.data.distractions){ - // trailArea.scrollFactor.set(); - var evilTrail = new FlxTrail(dad, null, 4, 24, 0.3, 0.069); - // evilTrail.changeValuesEnabled(false, false, false, false); - // evilTrail.changeGraphic() - add(evilTrail); - // evilTrail.scrollFactor.set(1.1, 1.1); - } - - boyfriend.x += 200; boyfriend.y += 220; gf.x += 180;