Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Play music command problems

Author
Message
Outscape
16
Years of Service
User Offline
Joined: 23rd May 2008
Location:
Posted: 29th Jul 2008 19:11
in the game i an working on
i want it so when a person does somthing it plays a sound
BUT
it only does it once
eg
say if i put whenever you left click it will play it the first time i click but not after that

and looping the music just... loops till no tomorow!

Creators of Outscape

http://forum.thegamecreators.com/?m=forum_view&t=132472&b=8
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 29th Jul 2008 19:15
have you look at the help file demo that show how to play a sound for each item on the screen. should show the code your looking for.

Dark Physics makes any hot drink go cold.
Outscape
16
Years of Service
User Offline
Joined: 23rd May 2008
Location:
Posted: 29th Jul 2008 19:19
no...

Creators of Outscape

http://forum.thegamecreators.com/?m=forum_view&t=132472&b=8
Bad Monkey
17
Years of Service
User Offline
Joined: 1st Jan 2007
Location:
Posted: 29th Jul 2008 19:25
You have to stop the sound first before making it play again.

play sound mySound
wait 2000
stop sound mySound
play sound mySound
wait 2000

end


Visit my website:
http://www.artistsareus.com
Outscape
16
Years of Service
User Offline
Joined: 23rd May 2008
Location:
Posted: 29th Jul 2008 19:45
so i gota add
if music exist
delete sound music
then load it

cos i already done that
ive tied using every command in the music menu so yes i did try i was trying for several hours yesterday but couldnt ask cos the forums were down

Creators of Outscape

http://forum.thegamecreators.com/?m=forum_view&t=132472&b=8
Outscape
16
Years of Service
User Offline
Joined: 23rd May 2008
Location:
Posted: 29th Jul 2008 19:46
and i cant use wait xxx in a loop and that doesnt work anyway

Creators of Outscape

http://forum.thegamecreators.com/?m=forum_view&t=132472&b=8
Outscape
16
Years of Service
User Offline
Joined: 23rd May 2008
Location:
Posted: 29th Jul 2008 21:05
this seemed to fix it:
if music playing(1)
text 100,100,""
else
stop music 1
endif
if music playing(2)
text 100,100,""
else
stop music 2
endif
if music playing(3)
text 100,100,""
else
stop music 3
endif

Creators of Outscape

http://forum.thegamecreators.com/?m=forum_view&t=132472&b=8

Login to post a reply

Server time is: 2024-09-27 18:20:07
Your offset time is: 2024-09-27 18:20:07