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 Professional Discussion / 2D Scrolling, IK image

Author
Message
FDC002
9
Years of Service
User Offline
Joined: 24th Feb 2015
Location:
Posted: 7th Jul 2015 09:08
Hi,

Am trying to optimise my 2D scrolling system.

Right now i have an "offseted" image(A in picture) from which I extract 4 images(B) using "IK paste image on image". This operation has to be done everytime a new column or line of tiles is reached by the player view.
Every frame I display the 4 images on screen to their correct coordinates(C).

I was wondering if there was any way to skip the copying part and directly paste specific area from the image 1 to specific area of the screen.

Thanks for help and advice

Attachments

Login to view attachments

Login to post a reply

Server time is: 2024-04-24 20:01:37
Your offset time is: 2024-04-24 20:01:37