So I'm making a game with various puzzle elements in the dungeons. A lot of these have worked out fine, but there's one in particular where I'm just not sure how to go about it: a laser puzzle.
What the plan is:
- Laser is produced by an autorun event
- When the laser hits a mirror, it changes direction-- but only if it hits the reflective part of the mirror
- Pressing Z/Enter/A button next to a mirror rotates it 90 degrees clockwise from its current position
- When the laser hits a sensor object, a short scene plays where a door is opened and the lasers are deactivated
What I'm stuck on:
- How do I make the mirrors detect if they're reflecting a laser?
- How do I make the sensor detect if it's being hit by a laser?
- How do I display the laser? (tried using individual events for each tile the laser crossed, but it caused performance issues)
Please help me.
What the plan is:
- Laser is produced by an autorun event
- When the laser hits a mirror, it changes direction-- but only if it hits the reflective part of the mirror
- Pressing Z/Enter/A button next to a mirror rotates it 90 degrees clockwise from its current position
- When the laser hits a sensor object, a short scene plays where a door is opened and the lasers are deactivated
What I'm stuck on:
- How do I make the mirrors detect if they're reflecting a laser?
- How do I make the sensor detect if it's being hit by a laser?
- How do I display the laser? (tried using individual events for each tile the laser crossed, but it caused performance issues)
Please help me.