0 Favourites

Container Problem

  • ok. so working with containers and i'm having a problem that as I understand should not be occuring.

    From the manual

    "Placing objects in a container has the following effects:

    If a condition picks one object in a container, every other associated object in its container is also picked.

    The third point is the main purpose of containers. Containers are also picked in events as a whole. This makes events treat containers as if they were one object. For example, if a condition picks a tank base instance, it also automatically picks the base's associated turret."

    This is actaully not happening. Picking seems to be very subjective to how containers work.

    Ok. So I have my player sprite. I use instances of the sprite to represent differnt playrs. however my sprite is part of a container. Which include leg and mouth sprites as attack sensors.(let's stick to leg)

    When my sprites leg sensor hit's an enemy the player bounces, gains some stamina and hp. however that's not what is happening. instead EVERY player bounces and gains hp and stamina.

    What's worse is that when PvP players hitting each other with the legs has worse effects. The player that is hit by the legs works, but the owner of the leg sensor isn't picked.

    Simply put. It seems that there is no picking going on or I'm missign something. So i'm asking here first.

    Here is how it looks

    -legattack "On collision with Fairy"

    +player platform vectory Y to -200 // this is to bounce

    +player add fairy.staminaRestore to stamina

    then this occurs to all players. So did I do somethign wrong?

  • Construct 3

    Buy Construct 3

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

    Buy 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)
Similar Topics Posts Views Last Post
Unread hot topic
98 7,590
norum82's avatar
norum82
Unread hot topic
87 5,373
facecjf's avatar
facecjf
Unread hot topic
80 10,053
jonathanbencomo's avatar
jonathanbencomo