The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[SOLVED] Lantern oil and Music
Zirg Offline
Junior Member

Posts: 14
Threads: 4
Joined: Feb 2011
Reputation: 0
#1
[SOLVED] Lantern oil and Music

EDIT*
About the music part.
As long as I don't put StopMusic in the callback function, the music that was playing before the areamusic kicked in, continues automatically after the areamusic has stopped playing. Thanks everyone who put time in trying to figure this out for me.


My first question involves the amount of oil, when you first pick up the lantern.

Is there a script that sets the amount of oil to less than 100% when you first pick it up? What I mean is, when you find the lantern, it's only half full.

My second question involves music in my custom story.

I have set this in my script:

void OnStart()
        
{  
PlayMusic("12_amb.ogg", true, 1, 4, 0, true);
}

Now, is it possible for this music to resume, after I've hit a CollideCallback area that plays a specific musicfile that doesn't loop?

So to illustrate it:

- I start my level and 12_amb.ogg starts to play
- I walk inside a room, hit a collidearea and insertoggfilehere.ogg starts to play
- insertoggfilehere.ogg finishes
- 12_amb.ogg needs to resume playing.
(This post was last modified: 02-26-2011, 07:31 PM by Zirg.)
02-26-2011, 06:07 PM
Find


Messages In This Thread
[SOLVED] Lantern oil and Music - by Zirg - 02-26-2011, 06:07 PM
RE: Lantern oil and Music - by Linus Ågren - 02-26-2011, 06:10 PM
RE: Lantern oil and Music - by Zirg - 02-26-2011, 06:37 PM
RE: Lantern oil and Music - by nkmol - 02-26-2011, 07:19 PM



Users browsing this thread: 1 Guest(s)