Create Object on Global Layer, Persist Across Layouts

1 favourites
  • 1 posts
From the Asset Store
Globals 2.0
$3.99 USD
Globals 2.0 stores and group variables. You can also load and save data (variables) from/to JSON files.
  • Goal: Create a sprite object on a global layer, that persists/remains when switching layouts. Needs to be able to switch to layouts that do not include the sprite's global layer, and when switched back to a layout with that global layer, the created sprite remains.

    I have multiple characters in my game (with multiple walk, jump, etc animations), and the player sprite swaps (while the hitbox/camera sprites remain) between different layouts. How do I create a player sprite that remains between layouts, when not all layouts in my game have the player sprite global layer? (the journal for instance does not have the "player" global layer. If I were to simply make the player sprite a global object, it would remain on these layers which I don't want).

    A caveat:

    - the player sprite's animations are quite large, and I cannot simply use an animation swap, it needs to be a sprite swap (unless there is a way to easily delete animations from memory?)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)