Little problem

0 favourites
  • 3 posts
From the Asset Store
Help the cute broccoli to get past all obstacles in his way!
  • hello,

    I have a little problem ....

    Here's the event ... When I click on a tree "Castor" goes to the tree and indicated the fact disappear (from a distance) .... its going down the ....But if I arrived before clicking on several tree (it goes to the last mentioned) all the trees that I select are destroyed ... then I want to delete the last

    I think the problem is "set to IdUnique sprite UID" because it takes the ID for each click

    This is what gives his

  • Your IDUnique variable should be a single global variable, and not an instance variable in each "Sprite".

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Ok thank you problem solved ...

    But now the same problem appears if the beaver had the misfortune to touch (when it is waiting 3 sec) the tree but the problem does not occur when it does not touch any tree ...

    But in any case thank you and why it makes me his with an instance variable ...

    Edit: I think I should put a global variable reset somewhere ...

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