Duplication of sprite sheets

0 favourites
  • 4 posts
From the Asset Store
- This pack is suitable for shooting games, running games, platform games, and side-scrolling...
  • Maybe there is a better way to do this, but...

    When I create multiple instances of the same object and then export it to HTML 5 it creates a separate sprite sheet graphic in the export even though all of those objects use the same sheet/images.

    Of course I can create some objects dynamically and avoid this, but it seems to me that they should share the same sprite sheet resource automatically.

    NOTE: I created the sprite sheet by loading multiple images into the objects sprite. Maybe that has something to do with it?

  • You are probably creating separate object types when really you want to create new instances of the same object type. See objects in the manual to learn more about the difference.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • That appears to be what it was. I wanted to make different functionality for each instance so I created separate object types. And in another case, I wanted to easily be able to change the object dynamically in "code" so having separate object types made that easier, but then duplicated the resources which I don't want to do.

    Is there a way to have different object types share a sprite sheet so that it's not necessary to duplicate it. I could make a work around using instance variables to change functionality too I suppose.

  • I have the same problem.

    i want to have a copy of a sprite, but i don't want to inherit any behaviours of the originals, and i don't want duplicate sprite sheets as my data directory is 10 times bigger than it should be with all the instances of the same prites.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)