Random Panda

Veteran
Veteran
Joined
May 3, 2016
Messages
92
Reaction score
15
First Language
English
Primarily Uses
RMMV
Hi all,

I'm having a little trouble timing out a specific kind of spike trap. What I would like to do is have alternating rows of spikes like so:
------- <-Spikes Down
^^^^^^^ <-Spikes Up
-------
^^^^^^^

And they would alternate their "Spikes Up" and "Spikes Down" positions. Getting them to just alternate was not a problem, but I need to time out a moment when they are both down so the player can move to the next tile. The way I have it now does this for the first swap, but the instant swap is instant. That leaves no time for the player to move.

This is how I have it right now:

Event A
Spikes Down position

Wait: 120 Frames
Self Switch A On

Spikes Up position
An page A:
Wait: 60 Frames
Self Switch A Off

Event B
Spikes Up position
Wait: 60 Frames
Self Switch A On

Spikes Down position
An page A:
Wait: 120 Frames
Self Switch A Off

And these two events alternate between the two spike positions.


I hope that makes sense to any readers. Any help with what I am missing or any ideas I could try would be very appreciated.
 

Rugman

Veteran
Veteran
Joined
Jun 11, 2020
Messages
297
Reaction score
82
First Language
English
Primarily Uses
RMMV
If I’m understanding correctly then you need to change your wait times. How can they both every be down at the same time if they alternate in perfect 60 or 120 intervals? You need to make one of the events change faster than the other so they will lose sync with each other.

I hope that makes sense and that I’m understanding your problem correctly.
 

Random Panda

Veteran
Veteran
Joined
May 3, 2016
Messages
92
Reaction score
15
First Language
English
Primarily Uses
RMMV
Actually, just you stating that helped. I've been scratching my head tweaking numbers. All I had to do was make the second event start its sequence later than the first. Thank you so much.
 

Latest Threads

Latest Posts

Latest Profile Posts

 …I think I might need to switch from standard ATK/DEF up/down buffs to parameter altering states. I just had an actor whose usual attack against an enemy does ~25 do a buffed attack against a debuffed enemy for ~600…
just saw that titan quest is free on steam until the 23rd
Zombie status is now complete. I didn't have to do much in the way of changing how healing is applied to undead targets, was just a simple 3 line code. I thought I had to overhaul Game_Action lol. Everything else was doable by events. So.. Zombie: You turn undead. Your element changes to darkness. You're weak to light, you're strong to physical attacks and healing hurts you and revival items will kill you.
My Overworld might be a mix of inspiration from 2D Final Fantasy games, Breath of Fire, Battlechasers: Nightwar, Super Mario World, and Pillars of Eternity. If I can make it more in-depth than just walking from point A to point B, that might do a lot for the gameplay experience. Hmm...

Forum statistics

Threads
115,226
Messages
1,088,224
Members
149,818
Latest member
JetWentworth
Top