The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Tutorials and Eventing => Topic started by: virusasa on December 05, 2009, 05:50:25 PM

Title: [Request] Ice Sliding Puzzle
Post by: virusasa on December 05, 2009, 05:50:25 PM
Hi :)

There is a puzzle in Pokémon Gold/Crystal/Silver in a ice cave. When you step on icy ground you start to slide and cant stop before you hit something or somewhere.

Can anybody make a puzzle like this please ?

Thank you.

ps
Sorry about my bad English :)
Title: Re: [Request] Ice Sliding Puzzle
Post by: Grafikal on December 05, 2009, 06:31:28 PM
Not necessary for a script. I'm moving to Tutorials/Events.

If someone doesn't pick this up, post your request at Zylos' Puzzle/Event Shop (VX) (http://rmrk.net/index.php/topic,35405.0.html). When he gets the time, I'm sure he could make it. This kind of puzzle is a pretty basic puzzle.
Title: Re: [Request] Ice Sliding Puzzle
Post by: virusasa on December 06, 2009, 01:09:46 PM
Thanks grafikal. I thing I will ask for it now. Thanks again. :)
Title: Re: [Request] Ice Sliding Puzzle
Post by: joy on December 06, 2009, 03:52:46 PM
I had one of these laying around in an old project, so here you go:

(https://rmrk.net/proxy.php?request=http%3A%2F%2Fimg.photobucket.com%2Falbums%2Fv648%2Fjoymason%2Frpgmaker%2Fslidepuzzle.png&hash=7d85ba7c3d7ceb2c1c4adee8b0e021bb7d2c2957)

Make your movement events like so...make 4 conditional branches, one each for left facing, right facing, up facing, down facing..yadda tadda... make the number of times it forces a move equal to the distance to the edge of the ice for that tile. (I'm lazy..and only made it equal for where you can -step- off ice..you can have it move a million times if it's a wall collission, so I didn't bother counting out distance to walls for each square). Make sure it's set to player touch and below player.

(https://rmrk.net/proxy.php?request=http%3A%2F%2Fimg.photobucket.com%2Falbums%2Fv648%2Fjoymason%2Frpgmaker%2Fslidepuzzle2.png&hash=13a0a03a5aa36195c412b2cc8cb81b911d6af1a6)

Your set move route events should be set up like this..turn off stepping/walking animation, move whatever direction however many times. Make sure that you have it set to skip if cannot move and wait for completion.

On the areas where you can step off the ice, just place a simple event which sets move route to step/walk animation back on.


Since you are ignoring impossible moves, you can place any number of blocking events/objects, so long as they are impassable, your character will slide into them and stop, withough freezing the game's processing, so long as skip if cannot move is on..
Title: Re: [Request] Ice Sliding Puzzle
Post by: virusasa on December 06, 2009, 05:28:35 PM
Omg ! thanks a lot joy!  :lol:
Title: Re: [Request] Ice Sliding Puzzle
Post by: OverlordVulcan on December 07, 2009, 08:22:28 AM
Alternatively, you could also try putting events on every single ice tile with the Set Move Route as Move Forward.

Just remember to set Skip if Cannot Move and Wait for Completion.
Title: Re: [Request] Ice Sliding Puzzle
Post by: Grafikal on December 07, 2009, 08:30:29 AM
Uhh, no. Do not do what he said. Not unless you want a retarded amount of lag.
Title: Re: [Request] Ice Sliding Puzzle
Post by: OverlordVulcan on December 07, 2009, 02:49:50 PM
Well, it depends on the size of your puzzle. :/

I tried it once and it didn't lag at all.

Though I just copied the puzzle format straight out from Mahogany Gym in Pokemon, so the map wasn't particularly large at all.