Trying to make a dodge-the-obstacle minigame

I’m going to apologize for the photo quality here, since it definitely reeks in terms of quality, but I’m hoping it gets the job done.
Untitled387_20231029122533.png


I’m currently trying to make a minigame where the player is given a vertical strip of area to move on. They’re tasked with avoiding whatever obstacle is going “towards them”, either by moving out of it’s path or by jumping over it.

I have no clue how to script this. I don’t even know where to BEGIN on how to script this. As it stands, I can make the sprites for this, and nothing else.

Please, if anyone has any ideas (scripts, plug-ins, base system, etc.) please let me know.
The car is just an event with a move route to go left, with touch trigger for "player loses" script in the event page. The player can be restricted to an area either with invisible events blocking the player, tileset passibility settings, or by marked impassable regions using a plugin.

To check for jumping you would have a parallel common event listening for a button press. On button press, set the player's moveroute to up then down.
@AquaEcho
you dont have to restrict the player movement at all, as you just set an
event you control and place input when UP and Down, LEFT and RIGHT
which the last 2 unable to move, up, is move up y-1 and down y+1.

but also checks when its on the bottom line, and when top line, so it can
move up and down correctly (event 1)
2nd event is controlling the car on those lines, and last event is to check
on collision and score to end the game ^^

that is the way I would do it though.

2 variables, 1-3 switches, and that should be it, but there are a couple
of methodes you could use, but you can build it simple and complex,
depending on the entire mechanic and build that out.
player is given a vertical strip of area to move on.
I read this as the player can move freely in a strip of area.
you could "fake" it though, you can also just use an event to move it like
an actor to make some things easier, it really depends, as "player" is
also an event, but you can easely override controls on autorun event
when you press the UP and DOWN button, while you react to the event,
the player cannot walk on its own.

so you can event it out without the needs of plugins ^^

Original thread: https://forums.rpgmakerweb.com/threads/trying-to-make-a-dodge-the-obstacle-minigame.162495/