Skip to content

My text changing its color unexpectedly after fading in #3947

Closed Answered by MAZ12211
MAZ12211 asked this question in Q&A
Discussion options

You must be logged in to vote

Putting the entire ripsArray null check in openCallback did the fix

state.openCallback = function() {
					if (ripsArray != null) {
						for (rip in ripsArray) {
							if (rip.songID == PlayState.instance.currentSong.id || rip.songID == PlayState.instance.currentSong.songName) {
								var ripCredit = new FlxText(20, 175 /*Right below the practice mode text*/, FlxG.width - 40);
								ripCredit.text = "Ripper: " + rip.ripper; // Will look for ripper
								ripCredit.scrollFactor.set(0, 0);
								ripCredit.setFormat(Paths.font("vcr.ttf"), 32, 0xFFffffff, "right");
								FlxTween.tween(ripCredit, {y: ripCredit.y + 5}, 1.8, {ease: FlxEase.quartOut, startDelay: 0.6 /*Will tween right…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@MAZ12211
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by MAZ12211
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants