Skip to content

SpriteSheet with only 1 row and 94 columns doesnt seems to work #4

Description

@Bramichou

Hello :)

thats not working for me, did things like that :

                <SpriteSheet
                    ref={ref => this.alarmLogo = ref}
                    source={require('./assets/spriteAlarm.png')}
                    columns={94}
                    rows={1}
                    width={300}
                    animations={{
                        walk: [20, 22, 23, 24, 25, 80,81,82,83,84,85,86],
                        appear: Array.from({ length: 15 }, (v, i) => i + 18),
                        die: Array.from({ length: 21 }, (v, i) => i + 33)
                    }}
                />

With sprite sheet 300 x 300 for each img, got the view with the good height and width but not displaying the spritesheet

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions