RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
pushing blocks puzzle help

0 Members and 1 Guest are viewing this topic.

**
Rep:
Level 88
I have an event called "crate" with a "action key" trigger and this code:

<>Move Event:: This Event (Ignore Impossible moves)
:                      :<>Move away from hero
<>Wait: 5 Frames
<>


How can i make it so that when it is in a certain spot, the value of a variable goes up?

*
Rep:
Level 89
2012 Best RPG Maker User (Story)Project of the Month winner for May 2007Project of the Month winner for July 20082011 Best RPG Maker User (Story)2011 Project of the Year2011 Best RPG Maker User (Creativity)
The easiest way I can think of (but not the most efficient) is this:

Make 2 variables named obj X and obj Y

Make 2 variables named Destination X and Destination Y


Make a parallel process event, set objX and ObjY to the crate's x and y location (available in the variables panel).

Set dest. X & Y to the destination's X and Y values.

Conditional branch; if objx = dest.x; then if objy = dest.y, 'variable'='variable'+1


I think there's a much more efficient way of doing this, but just use that method until someone posts it here.

***
Rep:
Level 88
Random-Idiot
With events, no their is no better way. I just posted this too at the tutorials: puzzles thread.
ALL HAIL ME™

**
Rep:
Level 88
still doesn't work. I'm gonna try in the scripts section.