Closed BlooDerg closed 2 years ago
I dunno what could be causing issues. Did you declare the FlxSprite's location before attempting to add it? Sometimes, the Sprite's variable will declare the position separately. Otherwise, the variable will declare it in the same line.
since Bee1 and Bee2 aren't giving the compiler any errors, search for the earliest those words are mentioned/declared to see any differences between 1UPBG.
I have no idea why, but renamming 1UPBG
to UpBg
fixed the issue...
it might've been a cross reference issue since the stage name is also 1upbg
I didn't think of that! I've been guessing vars in haxe are case specific, but now I know otherwise.
WHEN DECLARING VARS, THE FIRST LETTER MUST BE A LETTER
And is better to have vars with few upper case letters
Describe your problem here.
I have coded a function thats supposed to place an animated background that will change textures as the song progresses. Nothing in the PlayState.hx code is wrong except for this 1 error i keep getting and I have no idea how to fix it. Google searches didn't help.
The code is located with the stages setup, "switch (curStage)". It will render when the stage is called by the song.
My Code:
The error provided by cmd:
Are you modding a build from source or with Lua?
Source
What is your build target?
Windows x64
Did you edit anything in this build? If so, mention or summarize your changes.
Yes, Added a new stage, a new song "1up", a new week "Week Skyball", a new character "Skyball".