【发布时间】:2021-06-24 10:03:43
【问题描述】:
我一直收到一个错误,在“case 'captain-cool'”中需要一个 } 我不知道这是什么意思,添加一个 } 会给我同样的错误。
swith(curSong.toLowerCase());
{
case 'captain-cool':
{
trace('matthewanimation')
inCutscene = true;
var matthewMicGrab:FlxSprite = new FlxSprite();
var micsound:FlxSound = new FlxSound().loadEmbedded('assets/week1/sounds/micsound.ogg')
var armmove:FlxSound = new FlxSound().loadEmbedded('assets/week1/sounds/armmove.ogg')
matthewMicGrab.frames = Paths.getSparrowAtlas('assets/week1/images/cutsceneshit/matthewMic.png','assets/week1/images/cutsceneshit/matthewMic.xml');
matthewMicGrab.animation.addByPrefix('micgrab', 'Matthew MIC', 24, false);
animation.antialiasing = true;
add(animation);
【问题讨论】:
-
错误具体是“Playstate.hx:830: characters 4-8 : Expected }”
标签: haxe haxeflixel haxelib