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.
This commit is contained in:
parent
990c59aa98
commit
2ae3cb1311
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user