Hey everyone, I'm in need of some help with this:
Basically, in my game there's a simmetry puzzle, where 8 different chairs need to be pushed and pulled to match the chairs on the other side of the room.
I've used this tutorial to make a push/pull system that works perfectly fine. My problem is:
I need to check all of these event's coordinates to make sure they're in the right spot, that way, I can add to a variable that counts the amount of objects that are in their correct places.
The thing is, from my knowledge, I would need to make X and Y variables for all 8 events, and check all of their X/Y locations in a parallel event, that will add or subtract to the "CorrectObjects" Variable accordingly.
And that is, obviously, very, very time consumming and, I suppose, not very optimized.
Just to illustrate better what I mean, here's a picture of the chairs scrambled out of place, and in their correct positions:
Scrambled chairs
chairs in their correct spot
I want to be able to add to a variable if the chairs are in their correct spots, and subtract if they aren't. I have already tried a more local approach where, after the common event for pushing and pulling ends, a conditional branch checks the event's X and Y coordinates, and adds/subtracts to the "CorrectObject" Variable according to that.
However there's two issues with this:
Here's how the event looks at the moment.
So, if anyone knows of a more simple/to the point way of checking these coordinates, I'd love to know! Thank you in advance. 👋
Basically, in my game there's a simmetry puzzle, where 8 different chairs need to be pushed and pulled to match the chairs on the other side of the room.
I've used this tutorial to make a push/pull system that works perfectly fine. My problem is:
I need to check all of these event's coordinates to make sure they're in the right spot, that way, I can add to a variable that counts the amount of objects that are in their correct places.
The thing is, from my knowledge, I would need to make X and Y variables for all 8 events, and check all of their X/Y locations in a parallel event, that will add or subtract to the "CorrectObjects" Variable accordingly.
And that is, obviously, very, very time consumming and, I suppose, not very optimized.
Just to illustrate better what I mean, here's a picture of the chairs scrambled out of place, and in their correct positions:
Scrambled chairs
chairs in their correct spot
I want to be able to add to a variable if the chairs are in their correct spots, and subtract if they aren't. I have already tried a more local approach where, after the common event for pushing and pulling ends, a conditional branch checks the event's X and Y coordinates, and adds/subtracts to the "CorrectObject" Variable according to that.
However there's two issues with this:
- If the player is quicky mashing the Z button, they might push or pull the chair out of the correct spot even after the event adds to the CorrectObject Variable. Causing the chair to be in the wrong spot but read as if it weren't.
- The adding or subtracting only happens when the player is touching/interacting with the chair event.
Here's how the event looks at the moment.
So, if anyone knows of a more simple/to the point way of checking these coordinates, I'd love to know! Thank you in advance. 👋