Push/Pull Error

● ARCHIVED · READ-ONLY
Started by Emre 5 posts View original ↗
  1. I want to make push/pull in my game. Push is working great but pull doesn't work. When my character is pulling, stone doesn't moving with me. I couldn't understand why it doesn't work.

    Could you help me please...

    Push Pull.png
  2. My first thought: the player hasn't fully moved yet, so the rock can't move into the player's position. Try putting a "Through" on the rock's movement (and undo it at the end so that the player cannot walk through the rock afterward).

    I'd give the exact command but I'm not at the computer that has VX Ace on it at the moment.
  3. Having an object be pushable and pullable without breaking things is actually a bit more involved than you'd think. I made a tutorial over here about how you can solve it using in-editor eventing: http://forums.rpgmakerweb.com/index.php?/topic/27322-intermediate-how-to-make-pushable-and-pullable-objects/

    Edit: I realise the tutorial I linked is not for the exact type of interaction you want (it uses a button held down while yours uses a choice menu), so use it for inspiration rather than copying wholesale :)
  4. There is a very simple alternative provided by Shaz, which looks very elegant in-game, because when you 'pull' the object, the actors, including all the followers, step neatly backwards.  It requires 3 event commands on one page, so there's less to go wrong.  You can find it here:  http://forums.rpgmakerweb.com/index.php?/topic/27297-pull-an-object-as-well-as-push-it/

    Note, it evolved over a few posts, so read to the end to get the commands exactly right.

    This method was sufficient for what I needed.  It may be that you need something more elaborate.
  5. Thanks for helping...