how would i add instead of change or copy

0 favourites
  • 4 posts
From the Asset Store
Simplistic hyper-casual game with nature elements. Tap to switch between the 4 elements and reach a better score.
  • i want to be able to add variables and objects

    i know it is possible to add instances and change variables but this is not what i want to achieve

    i want to add or delete a variable while the game is running

    i want to create a new sprite while the game is running

    FYI i have knowledge/experience with javascript

  • Hello,

    You can add object in game using the System action "Create Object" or the Object action "Spawn Object". For an object to be spawn, an instance of this object type must already be in one of the layouts before, like objects on the side offscreen or in a loader layout.

    You can't add instance variables in game, but you can attach an array or dictionary and keep the UID in an instance variable to store and manage variables in game.

    Hope it helps

  • I think he means creating a new object (not instance) in runtime, this is not possible as a native function and as far as I know there is no 3rd party plugin that does that, I've looked into it before.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thank You for the information

    I Will try to make them variabel thing work

    Maybe i can create such a plugin

    I hope i can

    I Will loser my internet connecties in a couple of second so i can not respond quickly

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