Creating Quicksand pits like BW

updawg734

Whats up, dawg?
Member
Joined
Apr 26, 2017
Posts
89
Is anyone aware of a way to code quicksand pits? Like in the Relic Castle of Black & White, where if you run on top of it, it will pull the player under and transport them somewhere, but if you walk over top of it slowly, it won't pull you in?

I'm assuming it could be done with a conditional branch and player-touch events, where "if running" one thing happens, otherwise something else happens...

So, I guess the root of the question would be: Is there a way (switch, variable, script, etc.) to know if the player is currently using the running shoes? I know there's a variable for if the character has them, but this would have to be if the character is currently using them.

Thanks for any help!
 

Vendily

Cooltrainer
Member
Joined
May 16, 2017
Posts
130
Check $game_player.pbIsRunning? which checks if the player is running.
guess you can stick it in a conditional command.
 

updawg734

Whats up, dawg?
Member
Joined
Apr 26, 2017
Posts
89
Check $game_player.pbIsRunning? which checks if the player is running.
guess you can stick it in a conditional command.

Thank you for the suggestion! I tried placing that as a script parameter for a conditional branch, but nothing is happening when I step on the space. Here's what I have for the event right now:



I set it to event touch as well. Do you see somewhere where I messed up? I tried it as player touch and that didn't work either :/
 

CrimsonTy

Jet Black Hero
Member
Joined
Apr 1, 2017
Posts
59
Try making it like this
First event Player Touch
Self-Switch=A On
Then that Event happens (Use Parallel Process)
After Transfer Player turn Self-Switch=A Off


I don't know if this will work but you might as well try it
 

updawg734

Whats up, dawg?
Member
Joined
Apr 26, 2017
Posts
89
Try making it like this
First event Player Touch
Self-Switch=A On
Then that Event happens (Use Parallel Process)
After Transfer Player turn Self-Switch=A Off


I don't know if this will work but you might as well try it

Thanks for the suggestion! I actually ended up going a little bit of a different route with my quicksand pits and I actually really like how they are now. I decided to make it so that the player always will fall into them (running or not), and I'm making them more of an obstacle to get around in the route. But thank you for the response anyways! I'll mark this as solved now.
 
Top