O'Reilly logo

DarkBASIC Pro Game Programming, Second Edition by Joshua R. Smith, Jonathan S. Harbour

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Changing the Position and Size of a Movie

Now that you’ve had a little experience playing and looping movie files, I’d like to explain some advanced playback features. This section will explain how to change the scale and position of a movie during playback, with some interesting results.

Changing the Position of a Movie

Although you can simply play a movie using the full resolution of the screen, it is far more likely that you will want to use DB’s fantastic movie-playing capabilities for many small animations in a game or program. For this, you will need a way to reposition the playback to any place on the screen, and then return the position of the movie. Following are some commands that will help you to do just that.

PLACE ANIMATION is one ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required