more fixes and other crap

This commit is contained in:
Kade M
2021-05-24 19:46:07 -07:00
parent e991a71ca9
commit b047eb7a72
5 changed files with 27 additions and 17 deletions

View File

@ -1,5 +1,7 @@
package;
import flixel.tweens.FlxEase;
import flixel.tweens.FlxTween;
import flixel.FlxG;
import flixel.FlxSprite;
import flixel.graphics.frames.FlxAtlasFrames;
@ -36,11 +38,13 @@ class Alphabet extends FlxSpriteGroup
var xPosResetted:Bool = false;
var lastWasSpace:Bool = false;
var listOAlphabets:List<AlphaCharacter> = new List<AlphaCharacter>();
var splitWords:Array<String> = [];
var isBold:Bool = false;
public function new(x:Float, y:Float, text:String = "", ?bold:Bool = false, typed:Bool = false)
public function new(x:Float, y:Float, text:String = "", ?bold:Bool = false, typed:Bool = false, shouldMove:Bool = false)
{
super(x, y);
@ -58,6 +62,7 @@ class Alphabet extends FlxSpriteGroup
{
addText();
}
}
}
@ -93,6 +98,7 @@ class Alphabet extends FlxSpriteGroup
// var letter:AlphaCharacter = new AlphaCharacter(30 * loopNum, 0);
var letter:AlphaCharacter = new AlphaCharacter(xPos, 0);
listOAlphabets.add(letter);
if (isBold)
letter.createBold(character);
@ -178,6 +184,7 @@ class Alphabet extends FlxSpriteGroup
// var letter:AlphaCharacter = new AlphaCharacter(30 * loopNum, 0);
var letter:AlphaCharacter = new AlphaCharacter(xPos, 55 * yMulti);
listOAlphabets.add(letter);
letter.row = curRow;
if (isBold)
{