text type sfx

This commit is contained in:
Yoshman29
2023-01-21 15:00:23 +01:00
parent 0d23e808a6
commit 8bd84f92e7
3 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -1 +1 @@
2134
2136
+1 -1
View File
@@ -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);