Random Panda

Veteran
Veteran
Joined
May 3, 2016
Messages
120
Reaction score
31
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
302
Reaction score
89
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
120
Reaction score
31
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

If you are not part of the solution, you are insoluble sediment.
ScreenShot_9_28_2022_4_34_59.png
New enemy... Off Model Kevin. A drawing that's mad they the artist consistently drew them off model with no frame of reference in mind.
Would anyone be interested in me putting devlogs on my Itch?
Join Kytt and I for The Wifestream at 7pm (10 minutes from now) where Kytt will be trying out The Secret of Monkey Island for the first time! We'd love to have you with us for banter and shenanigans! Twitch

Forum statistics

Threads
125,639
Messages
1,172,470
Members
164,754
Latest member
Pancakecomputer
Top