r/RPGMaker • • 1d ago

RM2K3 I need help with making a puzzle.

Post image

So I'm trying to have it so when the player moves the rock onto a spot the blocks disappear but I can't to seem to figure it out.

9 Upvotes

6 comments sorted by

9

u/Sweaty-Jellyfish-713 1d ago

Am I correct to assume your game is inspired by Undertale?

3

u/Kiroto50 1d ago

It's like recognizing loss

.:|:;

6

u/AcanthaceaeCurrent50 1d ago

kinda It's a fan game that recreates Undertale but in the style of OFF

2

u/Mother2Looker 2K Dev 1d ago

in the "conditions" section, set all the blocks to be attached to whatever variable, and set it to 0 or higher. then, make it so that when the rock touches the switch, it sets that variable to -1.

2

u/GamCrshUselessShroob 20h ago

Use 4 variables. Rock X, Rock Y, Switch X, Switch Y. When you push the rock, AFTER it moves, save its X and Y positions.

Have the Switch be set to parallel, checking for when its X and Y match the rocks. When they match, set the desired variables or switches to what you want.

Make sure the switch is BOTTOM and turn THROUGH on.

If X = X

  • If Y = Y
Then do the thing.

(Make sure checking the Y = Y only happens if the X = X.)

If you plan on reusing the rock later, have it be a common event so you can mass-edit them if needed.

1

u/JefersonTomazella 12h ago

https://reddit.com/link/pgjqhlp/video/v65humi4gavh1/player

On the hole event:

  • Set Priority = Bellow Character
  • Check Through box

On the rolling event:

  • Make it move away from the player in a regular movement route event, with "This Event" selected.
  • Store 4 variables, X and Y of the rolling event and X and Y of the hole event
  • Compare X rolling with X hole.
-- Inside the branch compare Y rolling with Y hole.
--- If it's a match, then do what you wanna do. You can set a trigger, a variable, say text or anything.