PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

PARALLAX in GAPIDRAW - HELP!

Hello All,

I was wondering anybody can help me.
Is there a good way to implement parallax scrolling with the surfaces on GapiDraw with minimal processing time?

I tried creating the surfaces in CreateSurfaces, then bltfast them in ProcessNextFrame with x and y coordinates altered, but it doesnt work... Am missing something?

Thank you,
flavia
Hi,

GapiDraw doesn't currently support batch blitting of surfaces, something that will be included in a future release (for optimal performance on parallax scrolls).

In the mean time, BltFast should work satisfactory. I don't think anyone will be able to help you without more information: what exactly does not work?

Things to check:
(1) Surfaces must be stored as global- or member variables.
(2) They should be created in CreateSurfaces (as you did).
flavia · 05 Aug 2002, 20:03 UTC — RE:
hi,

it works now :) I wasnt resetting coordinates in the rects before.

thanks
flavia