Allegro scroll_screen()
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
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.
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.
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
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
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement