on-internet
← Community

How to set volume in Phaser 3?

Stack Overflow ·

I have a problem with the video game that I am trying to create. The problem that I have is that, the song that I have made this one very strong and looking at the documentation I have seen that can form the volume, have applied this way of forming it without any result. Not if I have explained correctly... My code in typescript: export class SampleScene extends Phaser.Scene { private song: Phaser.Sound.BaseSound; public preload() { // TODO: Add your code this.load.audio('theme', 'assets/audio/sayrun.mp3'); } public create() { // TODO Add your code. this.song = this.sound.add('theme'); this.so

Comments

Sign in or sign up to comment and upvote.

No comments yet.