TentaRJ / GameJolt-FNF-Integration

Add trophies, track player's play time and sessions, and connect to GameJolt with this project!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How do I fix this?

phrGithubGamerBR opened this issue · comments

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);
	}
}