The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Scripting => Topic started by: gotix on December 30, 2006, 03:33:47 AM

Title: pushing block puzzle help
Post by: gotix on December 30, 2006, 03:33:47 AM
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? I tried to do this with events, but it didn't work.
Title: Re: pushing block puzzle help
Post by: Zeriab on December 30, 2006, 04:06:07 AM
You can try looking a minigame called Gamos I made long ago: http://rmrk.net/index.php/topic,166.0.html
It might be too much for what you are trying to do though...
If you want to do it with events then Terrain Tags is a good idea if you have several spots.
Otherwise you can try to make a basic x- and y-coordinate check.
Title: Re: pushing block puzzle help
Post by: gotix on December 30, 2006, 04:27:52 AM
and how do you do the x and y coordinate check? (me = noob)
Title: Re: pushing block puzzle help
Post by: Me™ on December 30, 2006, 10:14:53 AM
Variable Operations : Variable is this events X tile
Variable Operations : Variable is this events Y tile

in the event you want the x and Y from.