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: entity.playtheora Scale Attribute  (Read 3307 times)

0 Members and 1 Guest are viewing this topic.

manarius

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 27
  • node it. node it all together my brethren :)
    • View Profile
    • Thats one of our Games :-)
entity.playtheora Scale Attribute
« on: April 02, 2008, 08:01:09 PM »

hi you all, once again a silly little question.

what kind of parameters should i add to the entity.PlayTheora method to get the video play in fullscreen?

i tried:
(Game is 1024 x 768, Theora Video is 640x480)

Quote
Video = Scene.CreateEntity();
Video.X = 192;
Video.Y = 144;
Video.ScaleX = 1024;
Video.ScaleY = 768;
Video.PlayTheora("video\video.ogg");

i tried different values, from 0.5, 2, 5, 10 to 1024,
nothing scales my video.
I know that this is my fault, but i dont know how to correct it.


btw Game.PlayTheora is no Option, because i need to play external musik together with the video as well as dont want the video to be interactive (its our logo).

greetings from rainy vienna and many thanks in advance ... again  :D,
manarius
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: entity.playtheora Scale Attribute
« Reply #1 on: April 03, 2008, 11:10:59 AM »

Ok, firstly, you *can* use Game.PlayTheora() with external music. See the Game.PlayTheora() paramneters, one of them is "FreezeMusic". Set it to false and voila, video plays with external music.
Other than that, the Scale for entites is set in percents, not in pixels.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

manarius

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 27
  • node it. node it all together my brethren :)
    • View Profile
    • Thats one of our Games :-)
Re: entity.playtheora Scale Attribute
« Reply #2 on: April 03, 2008, 10:37:17 PM »

loool never thought about that.

gonna test both of the ways,

thanks for the answer once again.

cheers,
manarius
Logged

manarius

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 27
  • node it. node it all together my brethren :)
    • View Profile
    • Thats one of our Games :-)
Re: entity.playtheora Scale Attribute
« Reply #3 on: April 11, 2008, 02:41:53 PM »

i managed to do it  :)

thats the code i used:

Code: [Select]
Game.PlayMusic("music\music.ogg");
Game.SetMusicVolume(100);
Game.PlayTheora("video\video.ogg",1,0,0,0);

when i used Game.PlaySound, the FreeceMusic attribute had no effect,
thats why i post it for anyone with the same problem.
(really hope there is noone else with this prob, honestly, i am ashamed i had it  :-[)

cheers.
manarius
Logged
 

Page created in 0.048 seconds with 21 queries.