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: Difficult with PlayTheora() on a close up layer  (Read 2812 times)

0 Members and 1 Guest are viewing this topic.

eborr

  • Regular poster
  • ***
  • Karma: 4
  • Offline Offline
  • Posts: 196
    • View Profile
Difficult with PlayTheora() on a close up layer
« on: May 27, 2010, 05:12:14 PM »

Hello

I have created a method to play thoera vids which has worked very nicely up til know.  The problem occured when I tried to play the film on top of a close up layer.  Doing a little bit of digging around I found that it played very nicely if it was assigned to an object in that layer, however the method I use creates a dynamic entity, and didn't appear to be comfortable with the layer.  The system gave no error messages, so I can only assume the flim played "below" the layers, any thoughts
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Difficult with PlayTheora() on a close up layer
« Reply #1 on: May 27, 2010, 05:56:51 PM »

however the method I use creates a dynamic entity, and didn't appear to be comfortable with the layer.
Why not? You can dynamically add entities to any layer. Or add entire new layers for that matter. Also there's still the Game.PlayTheora() method which plays full-screen video.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

eborr

  • Regular poster
  • ***
  • Karma: 4
  • Offline Offline
  • Posts: 196
    • View Profile
Re: Difficult with PlayTheora() on a close up layer
« Reply #2 on: May 28, 2010, 12:15:20 AM »

I have no idea why the dynamic entity didn't work with the layer, my compromise was to set layer.Active attribute to false after that it all worked dandy.

The basic process was

the layer was activated
a new object was created which pointed at the script method
the method was called in the same script as the above two events

and with the layer.Active=true nothing happened

Once Layer.Active =false everything worked as expected.
Logged
 

Page created in 0.04 seconds with 19 queries.