Sign in to follow this  
Urashima

Allegro scroll_screen()

Recommended Posts

Urashima    139
Somebody knows how to use scroll_screen(); in Allegro, I looked in the Internet but I did not find nothing, somebody already used scroll_screen ? I want to move the screen, to see the rest of scenery Thanks everybody for attention

Share this post


Link to post
Share on other sites
konForce    592
In short, that function is for virtual screen space under Mode-X in DOS. You're better off implementing scrolling yourself by using a bitmap buffer and blitting the appropriate sections to the screen.

Share this post


Link to post
Share on other sites
Stompy9999    792
Quote:
Original post by konForce
In short, that function is for virtual screen space under Mode-X in DOS. You're better off implementing scrolling yourself by using a bitmap buffer and blitting the appropriate sections to the screen.


Agreed.

All you have to do is keep a x and y offset. Than use this offset to draw a specific part of the map.

Share this post


Link to post
Share on other sites
Urashima    139
Thanks konForce and Stompy9999

I am using an image png with 838K as background, this image has 1000 X 1000

pixels, and the screen has 640 X 480, I am moving this image to make the

scrolling in the screen.

I don´t know if what I am doing is the better way to make scrolling, but its working, I think the image png with 838K will be too heavy in slow pcs, I need to research more to arrive in a conclusion.

I will search more about MODE-X in DOS, I am a beginner in Allegro.

Sorry for my english I don´t speak well
and again thank you very much



Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this