???
Hello once again...
:)
Is there an obvious reason my video doesn't play? I've honestly looked through this for like 3 hours and it's flying right by my amatuer head. :P
Appreciate your input everybody!
// room script file
Theora* video;
Hotspot *mouseOverHotspot;
float rot = 0.0;
function TVstand_AnyClick()
{
if(video)
{
video.DrawEx(DsBackground, 160.0, 120.0, 0.5, 0.5, 0.0, RtScreen);
if(System.HardwareAcceleration) video.DrawEx(DsScene, 260.0, 120.0, 0.25, 0.25, rot, RtScreen);
TVstand.Enabled = false;
video = Theora.Open("josh.theora.ogg");
SetGameSpeed(30); // you don't need to use the same fps as the video like this, but it's easiest this way
cjosh.Walk(213, 160, eBlock, eWalkableAreas);
bool loop; // enable/disable automatic looping
SetTimer(1, 160);
video.loop = false;
video.NextFrame();
rot += 0.2;
}
}
function room_AfterFadeIn()
{
{
PlaySound(1);
PlayMusic(1);
}
}
function room_RepExec()
{
// repeatedly_execute
mouseOverHotspot = Hotspot.GetAtScreenXY(mouse.x, mouse.y);
if (mouseOverHotspot == hotspot[2]) {
Display("Mouse over the door");
if (IsTimerExpired(1)){
TVstand.Enabled = true;
player.ChangeRoom(2);
}}}
function TVstand_MouseMove()
{
if (mouseOverHotspot == TVstand) {
mouse.SaveCursorUntilItLeaves();
mouse.Mode = eModeWait;}
}
function room_Load() {
video = Theora.Open("theora.ogg");
video.loop = true;
SetGameSpeed(24); // you don't need to use the same fps as the video like this, but it's easiest this way
}
well.. you're obviously doing something wrong.. :-\
??? ??? ??? so.... have fun trying to figure it out! lol
Quote from: willdons babe on Thu 22/04/2010 19:14:48
well.. you're obviously doing something wrong.. :-\
??? ??? ??? so.... have fun trying to figure it out! lol
nooo! REALLY?!?!?!? :P I love u.
Just to make sure:
Did you link the events from the editor?
If you just copied and pasted the whole code from some example that won't work.
Yes, everything is linked. I guess that problem is fixed. But I am having a problem defining a pointer "video". *FACEPALM*