Deprecated: str_replace(): Passing null to parameter #1 ($search) of type array|string is deprecated in /var/www/vhosts/gamedevstudiogame.com/httpdocs/classes/client.php on line 124

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /var/www/vhosts/gamedevstudiogame.com/httpdocs/classes/client.php on line 124
Game dev studio

Classes

developer »

gameProject »

pedestrianController »

playerPlatform »

punishment »

team »

Concepts

Libraries

Objects

addTrack

Description

Add a track path to the playlist.

Arguments

1 string path

the path to the sound file.

Example

local realFolder = musicPlayback.GAMEPLAY_TRACKS_FOLDER
local partialGameplayPlaylist = musicPlaylist.new(musicPlayback.PLAYLIST_IDS.GAMEPLAY_PARTIAL)
partialGameplayPlaylist:addTrack("music/gameplay/dream_project.ogg")