Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest WME version: WME 1.9.1 (January 1st, 2010) - download

Author Topic: Adding theora video into a scene  (Read 2586 times)

0 Members and 1 Guest are viewing this topic.

xportmedia

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 11
    • View Profile
Adding theora video into a scene
« on: April 02, 2010, 09:36:34 PM »

Hi there.

Very new to Wintermute.  Could anyone tell me how I can add a theora video into a scene as an entity?  Searched for code in the forums - can't find a solution :(

Thanks for your help - Hope you are all having a great easter.
Logged

metamorphium

  • Global Moderator
  • Addicted to WME forum
  • *
  • Karma: 12
  • Offline Offline
  • Gender: Male
  • Posts: 1511
  • Vampires!
    • View Profile
    • CBE  software s.r.o.
Re: Adding theora video into a scene
« Reply #1 on: April 02, 2010, 10:44:42 PM »

The most easy way is in your scene_init.script

Code: WME Script
  1. var ent = Scene.CreateEntity("myTheora");
  2. ent.X = 100;
  3. ent.Y = 500;
  4. ent.Active = true;
  5. ent.PlayTheora("yourogvfile.ogv",true);
  6.  


Logged
J.U.L.I.A. Enhanced Edition, Vampires!, J.U.L.I.A., J.U.L.I.A. Untold, Ghost in the Sheet

xportmedia

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 11
    • View Profile
Re: Adding theora video into a scene
« Reply #2 on: April 03, 2010, 12:18:51 AM »

Thanks for your help :)
Logged
 

Page created in 0.053 seconds with 24 queries.