Wintermute Engine > Not a bug

Bug with PlayTheora and Entities


I 've created a Region entity ans use region.PlayTheora() function

The video is playing well but is shifted 100 pixel on the right and down from the original position of my entity ... what's wrong ?


If you use a "region entity", the video will be played in the left right corner of the entity. Using a "sprite entity" allows to unable the scalable parameter. The video is now playing at the right position

By the way, using a entity.PlayTheora  instead of a Game.PlayTheora allows me to avoid the video skip with LeftClik

Well region entities don't really have a position. Only some approximation based on the bounding rectangle around the region points. Sprite entity is indeed a safer bet here.


[0] Message Index

Go to full version