Skip to content

FlxScrollZone stops scrolling #27

@DigiEggz

Description

@DigiEggz

After a certain amount of time, the scrollMatrix stops functioning because it eventually goes out of bounds.

This can be fixed by resetting the scrollMatrix after it has scrolled the length of the input graphic. Add the following code after data.source.pixels.draw(zone.buffer, zone.drawMatrix); in scroll()

if(zone.scrollMatrix.tx <= -zone.region.width)      
    zone.scrollMatrix.tx = 0; 

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions