Scripts / What Script Call is for Music or Sound?

Author
Message
Medmatheus
Reviewed GameGuru on Steam
9
Years of Service
User Offline
Joined: 18th Oct 2015
Location:
Posted: 26th Jul 2020 15:51
I thought LoopSound was suposed to be Music, and PlaySound for sound fx, but after creating the standalone game, the music slider won't reduce sounds from LoopSound.

What command is for Music?
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 26th Jul 2020 16:17
Take a look in music.lua.
Been there, done that, got all the T-Shirts!
PM
Medmatheus
Reviewed GameGuru on Steam
9
Years of Service
User Offline
Joined: 18th Oct 2015
Location:
Posted: 26th Jul 2020 16:40
Oh my bad, I thought this was an untouchable script, like global.

I just noticed that this script calls alot of functions, guess I'll have to make one per level, with different tracks? (music1.lua, music2.lua, music3.lua?)
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 26th Jul 2020 17:43
I think music.lua is not supposed to be modified, instead you do like in musicplaytrack1.lua, musicplaytrack2.lua etc.
Been there, done that, got all the T-Shirts!
PM
Medmatheus
Reviewed GameGuru on Steam
9
Years of Service
User Offline
Joined: 18th Oct 2015
Location:
Posted: 26th Jul 2020 18:54
In gametestmode, Its working perfect now. I making different scripts for every level, because each level has its own ambiente music. Hope it works the same way on Standalone version.

Thx @AmenMoses

Login to post a reply

Server time is: 2024-12-22 03:00:10
Your offset time is: 2024-12-22 03:00:10