CLAVISANIMA'S PROFILE
Search
Filter
Push / Pull objects (no-script method)
I managed to get it working when moving forwards and backwards by applying your idea when the player is facing certain directions: I used a conditional branch that reads the terrain ID (if terrain ID is 0/ not 1, the player will not move). This branch is only used when the player is facing certain directions whilst moving the box. For example, if the down button is pressed, the conditional branch is only used for when the player is facing up and vice versa when up was pressed. This allowed the player to move forward with the box if they were standing one tile away from the passable tile.
I still have yet to try this out when moving sideways, but I'm sure it will work if I apply the same principles.
Edit: Yup, it definitely works sideways too. My only problem now is that there's a delay when pulling.
Edit 2: I realised that the delay was caused by a 'wait until movement finishes' when the player is pulling the box. Everything works great now :)
Here's a snippet of the event for anyone who's interested:

I still have yet to try this out when moving sideways, but I'm sure it will work if I apply the same principles.
Edit: Yup, it definitely works sideways too. My only problem now is that there's a delay when pulling.
Edit 2: I realised that the delay was caused by a 'wait until movement finishes' when the player is pulling the box. Everything works great now :)
Here's a snippet of the event for anyone who's interested:

Push / Pull objects (no-script method)
This makes sense. It seems to be working quite well so far when the player is pushing an object.
Though, I have no idea how to implement this when a player is pulling an object. Since pulling involves the player having to step away from the object before the object moves, the variables for the event id won't be read until after the player has moved away from the object.
Here's a short snippet of my event page. Pushing down on the block works fine as expected, however pulling doesn't do anything at all. I had tried switching the object move event with the player's move event, however this causes a delay before the object moves and the player is unable to move further than one tile down.

Though, I have no idea how to implement this when a player is pulling an object. Since pulling involves the player having to step away from the object before the object moves, the variables for the event id won't be read until after the player has moved away from the object.
Here's a short snippet of my event page. Pushing down on the block works fine as expected, however pulling doesn't do anything at all. I had tried switching the object move event with the player's move event, however this causes a delay before the object moves and the player is unable to move further than one tile down.

Push / Pull objects (no-script method)
Hi again,
I was wondering if there was a way of making sure that the player stops moving when the box/object is unable to move.
So here's the scenario: I have coloured boxes that only move along paths of the same colour (red boxes move on red paths, blue boxes move on blue paths). The boxes cannot move out off the path. I was able to get this to work using a TheoAllen's Passability Terrain Script.
The problem is that the player will still be able to move in the direction that the box cannot move. I could make contact events where the player can't move in certain directions if the box is unable to move, however I think that method would be inefficient.
I attempted to make it so that the player stops moving when they step on a certain region, however, this makes it so that they cannot move the box at all.
I was wondering if there was a way of making sure that the player stops moving when the box/object is unable to move.
So here's the scenario: I have coloured boxes that only move along paths of the same colour (red boxes move on red paths, blue boxes move on blue paths). The boxes cannot move out off the path. I was able to get this to work using a TheoAllen's Passability Terrain Script.
The problem is that the player will still be able to move in the direction that the box cannot move. I could make contact events where the player can't move in certain directions if the box is unable to move, however I think that method would be inefficient.
I attempted to make it so that the player stops moving when they step on a certain region, however, this makes it so that they cannot move the box at all.
Pages:
1













