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.

FPSC Classic Product Chat / Music change only once and not each time enter zone?

Author
Message
Ekipshi
15
Years of Service
User Offline
Joined: 20th May 2009
Location:
Posted: 11th Jun 2009 00:23
I need the music to change in the middle of the level, so i use the music change in zone marker right? But, each time i enter it, it restarts the song each time i go in it, is there a way to change it so the music only changes once?

I was thinking i could add the destroy command to the fpi, but it's a marker, not an entity...

Any help is appreciated


All the best

Yeah... got hurt when i tripped... on some bullets
Conjured Entertainment
AGK Developer
19
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 11th Jun 2009 05:47 Edited at: 11th Jun 2009 05:52
Quote: "so i use the music change in zone marker right?"

music change in zone marker ???

The music is different than sound and loops anyway even when you change it.
You want to use the sound for playing stuff only once.

Use a sound zone and it should play only once.

Make sure your Marker's Main AI script is set to soundinzone.fpi and not soundloopinzone.fpi

Ekipshi
15
Years of Service
User Offline
Joined: 20th May 2009
Location:
Posted: 11th Jun 2009 06:11
Ya, but if i use soundinzone, it'll only play once, i want the main music that plays for the level to change entirely in the middle of the level, i changed a soundinzone marker to a musicchangeinzone marker, but if you reenter the zone, the music begins again.

I've found a sort of workaround (enveloping the entire area with the zone or locking the door behind you)

But it would be more effecient and easier to work with if i could just have one single zone that changes the level music alltogether.

Anyways, i'l try and figure somthin out i guess


Thx anyways

All the best

Yeah... got hurt when i tripped... on some bullets
Conjured Entertainment
AGK Developer
19
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 11th Jun 2009 06:19 Edited at: 11th Jun 2009 06:24
Quote: "Ya, but if i use soundinzone, it'll only play once, i want the main music that plays for the level to change entirely in the middle of the level"

Ok, I understand what you mean now.
You want the change the music while keeping the loop, but you want the trigger to work only once.

So, by the musicchangeinzone marker you mean that is the fpi script you are using for the marker?

So, it looks like this...

Quote: "

;Artificial Intelligence Script

;Header

desc = Music Change When Enter Zone

;Triggers

:state=0,plrwithinzone=1:state=1,musicoverride=$0
:state=1,plrwithinzone=0:state=0


"


So make a renamed copy of that file (call it whatever) and change state=0 to look like this...

:state=0,plrwithinzone=1:state=2,musicoverride=$0

Now, it goes to state=2 (nowhere) instead of looping back to play it again.
See if that works

Ekipshi
15
Years of Service
User Offline
Joined: 20th May 2009
Location:
Posted: 11th Jun 2009 07:15 Edited at: 11th Jun 2009 07:15
Hey, that actually worked

Y didn't I think of that


Thnx CE!

All the best

Yeah... got hurt when i tripped... on some bullets

Login to post a reply

Server time is: 2024-10-12 15:28:57
Your offset time is: 2024-10-12 15:28:57