Picking Problem

Get help using Construct 2

Post » Thu May 23, 2013 10:30 pm

I'm creating a puzzle platformer where putting a box on a button will trigger other puzzle elements to activate as long as the box remains on the button. For example, one button turns on a light while another opens a door. This works by having every object in the Triggerable family have an instance variable storing the UID of the Trigger object that activates it. Buttons are Triggers, Lights and Gates are Triggerables. Carriables are anything (like boxes) that can be carried and placed on a button.

However, no button will activate if there exists a button already activated. I can't figure out what the problem is. I think it has something to do with picking, but I'm not sure. I'm certain the problem lies here:

Logic in question

No buttons activated. Note that the buttons are labeled by their UID and the door/lights are labeled by the UID of the buttons that trigger them.

A box is put on one button, triggering the light.

A box is put on another button, opening the door.

One box is placed on the door button, then another box is placed on the light button. However, the light button does not activate.

The capx file is here.
ASWD moves the character. Space jumps. E picks up and drops boxes.
Posts: 13
Reputation: 1,183

Return to How do I....?

Who is online

Users browsing this forum: BackendFreak, erickson400, Kazan and 25 guests