Please login or register.

Login with username, password and session length
Advanced search  

News:

Forum rules - please read before posting, it can save you a lot of time.

Author Topic: Freeze music failed!  (Read 3443 times)

0 Members and 1 Guest are viewing this topic.

jar121

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 18
    • View Profile
Freeze music failed!
« on: November 10, 2005, 04:29:20 PM »

Zdar všem!
Jednou jsem se ptal, je-li možné při přehrávání videa znemožnit hudbě, aby se zastavila. Bylo mi odpovězeno, že se to dá použít parametrem FREEZEMUSIC.V dokumentaci, jsem nenalezl žádnou nápovědu. Nic z toho nezná a tak jsem zkoušel metodou pokusu a omylu. Nic nefungovalo a psala se neustále chyba script errrrror!, až na toto:

////////////////////////////////////////////////////////////////////////////////
on "LeftClick" {
  actor.GoToObject(this);
  Game.PlaySound("sounds\bookopen.wav");
  Game.ChangeScene("scenes\Kniha02\Kniha02.scene",false,false);
  Game.FreezeMusic = false;
  Game.PlayVideo("Video\Kniha2.avi");
}

při použití skriptu nenaběhne žádná chyba, ovšem bez jakéhokoliv efektu. Napište mi prosím, co je špatně a jak jej mám napsat, aby se hudba nezastavila. Už si nevím rady.
Děkuji moc!!!!
Logged

hanser

  • Regular poster
  • ***
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 216
  • Life is yet simple - over and over...
    • View Profile
    • First Reality developers studio
Re: Freeze music failed!
« Reply #1 on: November 10, 2005, 08:13:52 PM »

Zeptam se asi takto...
...mas posledni verzi WME vcetne posledni verze dokumentace?...protoze to tam opravdu je:

PlayTheora(Filename, Type, X, Y, FreezeMusic, DropFrames)
Plays a given Theora video file

Parameters
Filename
The filename of the Ogg Theora file to be played.
Type
     Type of display, 0=at a given position, 1=stretched, 2=centered (optional, default=1)
X
     X position on screen. Only used when Type is 0 (optional, default=0)
Y
     Y position on screen. Only used when Type is 0 (optional, default=0)
FreezeMusic
     Specifies whether the background music should be suspended while video is playing (optional, default=true)
DropFrames
     Specifies whether the video playback should drop frames if the playback is too slow (optional, default=true)
Return value
If the method succeeds, the return value is true.

...to byla citace primo z dokumentace WME Version 1.5.2 (October 9, 2005)
Jak vidis, tak to tam je a pokud vim, tak to i vyborne funguje  ::)
Logged
Dobri umelci kopiruji, ti nejlepsi kradou.
- mj. Steve Jobs & Bill Gates

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Freeze music failed!
« Reply #2 on: November 10, 2005, 09:41:30 PM »

Jinymi slovy, FreezeMusic neni samostatny prikaz, jak se ho snazis pouzit, ale jen parametr metod PlayVideo() a PlayTheora().
Takze v tvem pripade, pokud pouzijes nasledujici prikaz, melo by to fungovat:

Game.PlayVideo("Video\Kniha2.avi", 1, 0, 0, false);

1..roztahnout video pres celou obrazovku,
0,0..pozice videa na obrazovce
false..nezastavovat behem prehravani hudbu
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

jar121

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 18
    • View Profile
Re: Freeze music failed!
« Reply #3 on: November 20, 2005, 06:28:14 PM »

.....updating...
....
...
..
.

paráda, už to mám a funkční, díky moc za pomoc!
Logged
 

Page created in 0.023 seconds with 24 queries.