Skip to content

dev branch : Template Sprite problem #919

@EnlNovius

Description

@EnlNovius

Bug Report

I tried to use the template proposed by Tiled (ObjectLayer) with the dev version of arcade (2.6.0.dev1) and I have problems with the textures.
In this case, I have an ObjectLayer with two template objects: a tree (16x36) and a bollard (48x36), and a background which is the repetition of the same tile (16x12) (SpriteLayer). The visual in Tiled is as follows:

image

However the visual displayed by arcade with the following commands is not the same (see the code in the .zip file for more information):

self.tile_map = arcade.load_tilemap(map_name, TILE_SCALING)
self.scene = arcade.Scene.from_tilemap(self.tile_map)

image

Depending on how I build the file in Tiled, the texture displayed for the objects changes. I don't know what causes the change, but I wonder if the texture used for the templates is not the last texture added to the project (in Tiled).

The code I use and the images are available here (normally you will just have to unzip and run python debug.py), I reused the code of an example from the dev documentation :

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions