简体   繁体   English

道奇效果修复? (FNF 心理引擎)

[英]Dodge Effect Fix? (FNF Psych Engine)

            case 'Dodge': //hahahahahahahaha beat that demo
            new FlxTimer().start(0.1, function(tmr:FlxTimer)
                {
                    var warning = new FlxText(0, 0, 0, 'Press Space Bar Now!', 32);
                    warning.cameras = [camOther];
                    warning.setFormat(Paths.font("vcr.ttf"), 24, FlxColor.WHITE, CENTER, FlxTextBorderStyle.OUTLINE, FlxColor.BLACK);
                    warning.screenCenter(X);
                    warning.size = 50;
                    warning.screenCenter(Y);
                    warning.updateHitbox();
                    add(warning);
                });

                new FlxTimer().start(0.6, function(tmr:FlxTimer)
                    {
                        if (FlxG.keys.justPressed.SPACE)
                            {
                                health = 1;
                                boyfriend.playAnim('dodge', true); //woosh
                                FlxG.sound.play(Paths.sound('dodge')); //stab
                                remove(warning);
                                warning.destroy();
                            }
                            else {
                                health -= 2;
                                vocals.volume = 0;
                                doDeathCheck(true); //dead noises
                            };
                    });

so it does it but it wont detect space bar being hit i need it so it will detect the space bar being hit i am not sure what i did wrong or what i did but it just goes to game over所以它会这样做但它不会检测到空格键被击中我需要它所以它会检测到空格键被击中我不确定我做错了什么或我做了什么但它只是游戏结束

I would Use lua ( not using source ) Since there is no offical event sorry im a Psych engine nerd- I made 2 engines so i would say make a lua event with it我会使用 lua (不使用源代码)因为没有官方事件对不起我是一个 Psych 引擎书呆子 - 我做了 2 个引擎所以我会说用它做一个 lua 事件

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM