Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Hello.

I'm having problems trying to make an event that is solid but once you stomp on it it does a thing and then it remains solid.

Picture a chest that is not passable or anything, but once you jump and land on it it opens and turns on a self switch to remain open and solid like any other chest.

I know you can make an event that detects if you have jumped on it, but only if the event is already below characters, and that would make the event always passable.

If you use different pages, one for when it's solid and closed, one for when you are jumping and the event is below characters or is passable and another opened after having been jumped on the plugin will not see the event as a viable landing spot and the player will jump to only the tile before the event.

Does anyone know how to make this solid event that is 'jump-able'?

i will not be able to get into the engine for a while. But maybe what you can do is make a parallel event that checks if the player is jumping. If yes, you can set the event to through ON. 

You can also set Through ON on this parallel event if the player is on the same x and y position.

Also, Im not sure if I understood what do you say by "solid" event.

You could try creating a parallel event with this script 

const c1 = $gamePlayer, c2 = $gameMap.event(001); $gameMap.distance(c1.x, c1.y, c2.x, c2.y) < 1 

Let's say the chest was event 001, this would allow the parallel event to determine when the character is within one space of chest. You could then turn on a switch to temporarily change the state of the chests passibility.