text type sfx
This commit is contained in:
+1
-1
@@ -1 +1 @@
|
||||
2134
|
||||
2136
|
||||
@@ -49,7 +49,7 @@ class DialogueCutscene extends Cutscene {
|
||||
char: node.getAtt('char').getDefault('boyfriend'),
|
||||
bubble: node.getAtt('bubble').getDefault('normal'),
|
||||
callback: node.getAtt('callback'),
|
||||
speed: node.has.speed ? Std.parseFloat(node.att.speed).getDefault(0.02) : 0.02
|
||||
speed: node.has.speed ? Std.parseFloat(node.att.speed).getDefault(0.05) : 0.05
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -58,6 +58,7 @@ class DialogueBox extends FunkinSprite {
|
||||
text.size = Std.parseInt(textNode.att.size).getDefault(20);
|
||||
text.font = Paths.font('${textNode.getAtt("font").getDefault("vcr")}.ttf');
|
||||
text.antialiasing = textNode.getAtt("antialiasing").getDefault("false") == "true";
|
||||
text.sounds = [FlxG.sound.load(textTypeSFX)];
|
||||
} catch(e) {
|
||||
active = false;
|
||||
Logs.trace('Couldn\'t load dialogue box "$name": ${e.toString()}', ERROR);
|
||||
@@ -76,7 +77,7 @@ class DialogueBox extends FunkinSprite {
|
||||
|
||||
private var __nextText:String;
|
||||
private var __speed:Float;
|
||||
public function playBubbleAnim(bubble:String, text:String, speed:Float = 0.02) {
|
||||
public function playBubbleAnim(bubble:String, text:String, speed:Float = 0.05) {
|
||||
this.__nextText = text;
|
||||
this.__speed = speed;
|
||||
this.text.resetText(text);
|
||||
|
||||
Reference in New Issue
Block a user