bruno12design's Forum Posts

  • 3 posts
  • Hello all :)

    I am working on an interaction where you can add and remove elements to a sandwich.

    Ex: +BURGER button adds a burger to the sandwich. Same thing with the other ingredients.

    In order to remove, it is done by draggin it out of the sandwich pile. The user should be able to drag any item of their choice.

    Let's say I have a pile of 5 burgers, and I want to remove the 2nd from bottom to top.

    QUESTION: how do I make ONLY the burgers (and any other ingredientes) above it to move down?

    Here's a screenshot:

    Thank you all in advance :)

  • Hey LukeW, thanks for the reply!

    Actually, related to the variable itself, I’m capable of doing.

    But I want that, if 4 is subtracted from the Global Variable People, I also get to see less 4 object instances on the screen.

    Not sure if I’m clear enough 😆

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hello there,

    I was wondering how could I make a number of instances of the same object being related to a global variable.

    Trying to explain:

    Object: "Person"

    Global Variable: "People"

    IF car object is created

    - system subtracts 4 from "People" (That's OK)

    - 4x "Person" are Destroyed

    Basically, the number of instances will always be the same as the global variable

    Anyone?

    Thank you very much!

  • 3 posts