Hi,
I'm having trouble creating or updating an object in Construct 3 depending on whether an instance with a specific variable already exists.
What I’m trying to do:
On signal received:
Pick the player_hitbox object using its instance variable myId
If it does not exist, create a new one
If it does exist, update its position
Unfortunately, I can't get this to work. Right now, the event always ends up creating a new player_hitbox, even though one with the same uniqueId already exists.
Here’s a screenshot of my event sheet for reference:
Any idea what I'm doing wrong? Thanks in advance!