Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / Video animation in corner of screen

Author
Message
HenryTj
20
Years of Service
User Offline
Joined: 2nd Nov 2005
Location:
Posted: 8th Jul 2006 17:57
Hi again. I am trying to make a video animation happen in the corner of the screen. I first tried making an AVI file, loaded it, and played it. The game came almost to a stop performance wize, and the last frame of the video stayed up on the screen. I only need 2-3 seconds of numbers, diagrams, etc no show in quick sucession. (Sorta like a "data download." It just needs to be played for several seconds in a corner of the screen (maybe 160x120, or smaller.) Then go away, but be able to be played again. I can make the video, but playing it as a video-animation isnt working well for me.

Thanks,
Henry
(Gotta go crash, been up for about 24 hours.)
Sven B
21
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 8th Jul 2006 18:36
To resize an animation (+ position)

place animation ani, left, top, right, bottom
(or at least that's the command I remember, long time ago since I last used avi files)

And to wipe the animation from the screen, it's enough to use cls.

So for example:

To freeze the game, and wait till the animation stopped (then wipe the screen).

It's the programmer's life:
Have a problem, solve the problem, and have a new problem to solve.
HenryTj
20
Years of Service
User Offline
Joined: 2nd Nov 2005
Location:
Posted: 9th Jul 2006 03:17
The AVI is already sized and ready.

I was just hoping that the Play Animation command would be a video equivalent of the Play Sound command where it would play several seconds of video while the game continues to play. I don't want the game to stop while the video plays.
Sven B
21
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 9th Jul 2006 20:09
it is possible to play an animation while your game is running. But it is very slow...

It's the programmer's life:
Have a problem, solve the problem, and have a new problem to solve.
Pincho Paxton
23
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 9th Jul 2006 20:24
you could stamp it down as jpg or bmp frames. That would be fast.

Login to post a reply

Server time is: 2026-07-06 18:36:47
Your offset time is: 2026-07-06 18:36:47