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.
Collapsing Tiles

0 Members and 1 Guest are viewing this topic.

**
Rep:
Level 83
Solution/tutorial is in the 3rd post.

Okay, so I don't know if many of you remember a system for the last gym in emerald/ruby/sapphire but to get to the leader you needed to step on every patch of ice to unlock the door.  The trick was you could only step on each patch of ice once because after you stepped off of a patch of ice it collapsed into a hole.

I'd like to do something where when you step off of an event(using the cracks on Tileset D) and have it collapse into an impassable event(using the hole on Tileset D).  I've tried adding onto a variable every time you stepped on a crack, but then after you step on a second crack they all turn into holes.  I'd like to have this as an event system, not a script if possible, but if a script is the only plausible way to get it done, they it'll have to do.


Here's what I've been using:

I start with the cracks and add onto a designated variable
Spoiler for:

Then I set another page to go off when the variable has been added on to, causing the "collapse"
Spoiler for:

And finally, i had a last page that is just an impassable hole.
Spoiler for:


So, have I been going about this entirely the wrong way?  Does it need to be scripted, or will events suffice?
Is it just impossible?
« Last Edit: August 26, 2009, 06:25:28 PM by Sartory »
Shadow Resistance - My first VX game.

Mapping - 60% done
Eventing - 33% done
Scripting - 47% done
Plot - 72% done
Database - 12% done


http://rmrk.net/index.php/topic,33686.0.html


***
Rep:
Level 89
Sure it's possible. :) But use just self switches, if you want to make more than one "crack tile".
Follow this:

CRACK-TILE EVENT

1st page:
Graphic: Crack tile
- Below/Player Touch
Do: Control Self Switch: A=ON

2nd page:
If: SelfSwitch A=ON
Graphic: The same crack tile craphic
- Below/Player Touch
Do: Control Self Switch: B=ON,
      Control Self Switch: A=OFF

3rd page:
If: SelfSwitch B=ON
Graphic: Hole
- Same as character/Player Touch or Button
DO: Nothing, or message "Can't go that way." or sth. :)

And you can copy this event as much, as you need, without any variable-changes.
Regards,
Mike

**
Rep:
Level 83
I did try that earlier, but it requires a player to step on the tile a second time to turn into a hole.
I have been thinking about having the second time a player step on the tile it drops them in a hole, meaning they could only step on a tile once.  I also want the tiles to be able to reset, so instead of selfswitches I'll try mapping with holes, set the holes passability to below, and have the cracks erase the 2nd time and drop the player into a dungeon/basement area.

Okay, I got it.  First you need two areas(maps, not actual areas), the upper area with the cracks and a need to carefully cross the cracks, such as a chest at the end that requires you to go to the chest and return to the beginning using different paths, or a door that only opens once you've stepped on all the cracks(this would require variables).

The lower area is where the player goes after stepping on the same crack twice.  This area needs stairs that lead to the beginning of the maze, or you could create different sections to fall into, with chest and monsters, experiment a little!

The lower area needs only two events, the stairs leading up, and an autorun event that plays an SE as the player hits the ground.
Like this:
Spoiler for:

The actual crack event is actually four pages;

The first page is the first crack, that turns self switch A on.
Page 1 ->
Spoiler for:

The second page is the second time the player steps on the crack.  It plays an SE then turns on Self Switch B.
Page 2 ->
Spoiler for:

The third page reveals a hole, and I made the player jump to simulate falling, or surprise.  It has a nice effect when the player completes their jump in the lower area.  It took me awhile to get the wait times correct.
Page 3 ->
Spoiler for:

The final page fixes the issue of having the hole disappear from under you.  It is an autorrun hole event that turns off the last self switch.
Page 4 ->
Spoiler for:

That all, you can just Copy+Paste the crack events wherever you want them.  I tried to make this sort of tutorial-ish so that people don't have to sit around and figure it out like I did.  Thanks to Fizzly for helping me, it got me on the right track.

Oh and...Crack tiles!!!  lololololol  for a drug addicts game lololol  I just found that funny.
« Last Edit: August 26, 2009, 06:27:15 PM by Sartory »
Shadow Resistance - My first VX game.

Mapping - 60% done
Eventing - 33% done
Scripting - 47% done
Plot - 72% done
Database - 12% done


http://rmrk.net/index.php/topic,33686.0.html


***
Rep:
Level 89
Hehe, no problem.  :D Good you've done it like you wanted it.
Regards,
Mike