Advertisement

sidescrolling problems.

Started by December 12, 2002 07:08 PM
1 comment, last by Username_ 21 years, 11 months ago
im using directx and c++ to create a side scrolling game. in order for this to work, i need the screen to uh... scroll. as far as the background bitmap goes, the only way i can think of doing this practicly, is to move the surface (that has the background bitmap on it) leftwards as the player moves rightwards. however in Directx, if you move a surface off the edge of the screen, the entire surface disapears. is there a better way to acheive this effect or is there a common way to do it? please and thanks for any help, username
Ack, been a while since I''ve thought about DX sidescrolling.
*goes to check the old engine*
Ack, forgot I was using tiling and not one solid background. In any case, check out the Clipper. It may be what you''re asking about.

-Ryan "Run_The_Shadows"
-Run_The_Shadows@excite.com
-The Navidson Record! The best film you''ll never see!
Advertisement
However, if you use a clipper, using BltFast won''t work. And I think a few other things will cut out too. Try setting up a RECT for the view.

The past was unknown, the future was predicted.
the future is just like the past, just later. - TANSTAAFL

This topic is closed to new replies.

Advertisement