Please login or register.

Login with username, password and session length
Advanced search  

News:

IRC channel - server: waelisch.de  channel: #wme (read more)

Author Topic: Music Timer  (Read 3171 times)

0 Members and 1 Guest are viewing this topic.

Catacomber

  • Supporter
  • Frequent poster
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Female
  • Posts: 443
  • I love mice.
    • View Profile
    • Catacomber.com
Music Timer
« on: January 26, 2009, 05:21:57 PM »

This is a lazy question because I don't have the opportunity right now to check the documentation and I'm not sure the answer is there.  Any help is appreciated.

Is it possible to have music run in a scene for a specified amount of time and then move the player to a new scene when the music is over?
Logged
http://www.catacomber.com/
Code: WME Script
  1. Mnemonic is wonderful.
  2.  

maze

  • Occasional poster
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 59
  • Good news
    • View Profile
Re: Music Timer
« Reply #1 on: January 26, 2009, 07:14:41 PM »

Maybe this
Code: [Select]
if (Entity_or_Game_or_Something.IsMusicPlaying()) or this
Code: [Select]
var_pos = Entity_or_Game_or_Something.GetMusicPosition();could help you. If you want to use case II, you should query like this
Code: [Select]
if (var_pos >= your_value)cause getting the exact position would probably not work, query with a "bigger then" should do the trick.
Logged

Catacomber

  • Supporter
  • Frequent poster
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Female
  • Posts: 443
  • I love mice.
    • View Profile
    • Catacomber.com
Re: Music Timer
« Reply #2 on: January 27, 2009, 04:27:45 PM »

Thank you, Maze, I'll try something like this.  : )
Logged
http://www.catacomber.com/
Code: WME Script
  1. Mnemonic is wonderful.
  2.  
 

Page created in 0.044 seconds with 20 queries.