Hi muties,
this one will be short but for those of you who are using theora entities in your scripts and thought they are not interactive, I provide the following trick, how to mend this.
Logic behind the following code is, that WME now supports creating own regions even if there's none. So we'll creating bounding region ourselves manually.
We'll presume your theora is square 128x128 points, other shapes are just a matter of using more region points.
First in Scene Edit create an empty entity and call it test, then in scene_init.script type something like this:
ent.
PlayTheora("your ogv file goes here",
true,
"your mask goes here");
// so our theora is playing now!
ent.
CreateRegion();
//we create a new region so our entity will become interactive
Piece of cake, no? Now you can easily click your theora entity.
But wait what if you want to move it around on the screen? Simply update the region nodes based on current theora position!
That's all folks. Hope you find it as useful as I did for my game.