im back :) I read through the sounds deck example, and some other forum posts, and have specific (coding 101, probably) level questions about music in a visual novel style game.
i am trying to implement background music, split into 17 10-second intervals, seamlessly across decks. currently i have a field named loopcounter on the first screen that starts at 0. i have put this code in the deck level script:
on loop do
m:3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,1,2
deck.cards.Home.widgets.loopcounter.text:i:(count m)%1+deck.cards.Home.widgets.loopcounter.text
"sound%i" format m[i]
end
(the array starts at 3 because of strange music splicing)
while sound plays continuously through the deck, it advances tracks upon going to a new card. ) this loops correctly on the starting card.
the code for each card after all follow a similar format:
on view do
if langselect.widgets.language.text = "ukrainian" then
(dd text things)
dd.close[]
go["Next"]
else
(more dd text things)
dd.close[]
go["Next"]
end
end
I have gotten music to play through seamlessly through cards before but have gotten so turned around with this code i forgot how :^) it had its own issues as well.
thanks for your time!