Hello, i decided to make some help for ppl.
Its really hard to create good map. I know its difficult to understand how things work, so i will give examples of good working stuff.
Plantum_Tutorial(P_Tut) Lesson 1. Valve and Slide Door.
Doors that can be opened/closed with rotating wheel, and also
a lever for fast-close that doors.
(07-10-2011, 03:30 PM)plantum Wrote: Hello, i decided to make some help for ppl.
Its really hard to create good map. I know its difficult to understand how things work, so i will give examples of good working stuff.
Plantum_Tutorial(P_Tut) Lesson 1. Valve and Slide Door.
Doors that can be opened/closed with rotating wheel, and also
a lever for fast-close that doors.
In StopMusic you have to put the same priority value in the alPrio spot that you have in the PlayMusic one
copy pastes from script functions:
alPrio - priority of the music. Note that only the music with the highest priority can be heard! 0 - highest, 1 - lower, etc
alPrio - the priority of the music that should stop
(07-10-2011, 07:02 PM)Jordo76 Wrote: A void OnLeave on the map where you Leave ?
void OnLeave
{
StopMusic(4, 1);
}
No ?
I tried everything but no luck. This is so frustrating. When i change that prioty 1 or 0 then "Track never starts playing" :/
Well, i was hoping that guyz will come here with proper questions (about valve) but is alright, i will try to help.
It would be a lot easier if i could see this map and script, so if you can, somehow, pls send it to me, or post somewhere.
My first though- Your Music (number 1) never stops playing CAUSE next music (number 2) never comes up. I see script, and its can be wrong or something, i guess, first you should try turn off first music (number 1) and make sure that the script (number 2) is working correctly and its playing second music (number 2).
When i woke up this morning i tried some things, and this is what i can tell:
When you have two maps, with two musics on the same priorty, the music is changing automatic (you dont need no "StopMusic" command.) This works also when priorities are different
Its not perfect but its work.
So the easiest way to do this is just put the "PlayMusic" command in the place "OnEnter", and game will change music when you enter to another map automatically (one music will fade to another).
What i discovered, i think
When you change map (i.e. 1 >> 2 ), and you come back ( 2 >> 1 ) - the music is not playing from the start(begging), so
i guess it means that the game its saving the its progress(music progress) OR the music just never stop playing.
If you wont put that in your script. The music will always play from the begging.(as you enter the map)
======================================
Try my example and tell me if that is what you want, check it and tell me what you think, maybe you want something different, i don't know.
(07-10-2011, 07:02 PM)Jordo76 Wrote: A void OnLeave on the map where you Leave ?
void OnLeave
{
StopMusic(4, 1);
}
No ?
I tried everything but no luck. This is so frustrating. When i change that prioty 1 or 0 then "Track never starts playing" :/
Well, i was hoping that guyz will come here with proper questions (about valve) but is alright, i will try to help.
It would be a lot easier if i could see this map and script, so if you can, somehow, pls send it to me, or post somewhere.
My first though- Your Music (number 1) never stops playing CAUSE next music (number 2) never comes up. I see script, and its can be wrong or something, i guess, first you should try turn off first music (number 1) and make sure that the script (number 2) is working correctly and its playing second music (number 2).
When i woke up this morning i tried some things, and this is what i can tell:
When you have two maps, with two musics on the same priorty, the music is changing automatic (you dont need no "StopMusic" command.) This works also when priorities are different
Its not perfect but its work.
So the easiest way to do this is just put the "PlayMusic" command in the place "OnEnter", and game will change music when you enter to another map automatically (one music will fade to another).
What i discovered, i think
When you change map (i.e. 1 >> 2 ), and you come back ( 2 >> 1 ) - the music is not playing from the start(begging), so
i guess it means that the game its saving the its progress(music progress) OR the music just never stop playing.
If you wont put that in your script. The music will always play from the begging.(as you enter the map)
======================================
Try my example and tell me if that is what you want, check it and tell me what you think, maybe you want something different, i don't know.
Thanks for the tips and tutorial I'll maybe tried it. I have solved my problem now different way.