GameJolt-FNF-Integration
GameJolt-FNF-Integration copied to clipboard
How do I fix this?
source/TitleState.hx:593: characters 64-69 : Too many arguments source/TitleState.hx:606: characters 59-64 : Too many arguments
functions:
function createCoolText(textArray:Array<String>, ?offset:Float = 0)
{
for (i in 0...textArray.length)
{
var money:Alphabet = new Alphabet(0, 0, textArray[i], true, false);
money.screenCenter(X);
money.y += (i * 60) + 200 + offset;
if(credGroup != null && textGroup != null) {
credGroup.add(money);
textGroup.add(money);
}
}
}
function addMoreText(text:String, ?offset:Float = 0)
{
if(textGroup != null && credGroup != null) {
var coolText:Alphabet = new Alphabet(0, 0, text, true, false);
coolText.screenCenter(X);
coolText.y += (textGroup.length * 60) + 200 + offset;
credGroup.add(coolText);
textGroup.add(coolText);
}
}