Push/Pull Error

Emre

Warper
Member
Joined
Jul 14, 2014
Messages
4
Reaction score
0
First Language
Not English
Primarily Uses
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
 

HeroicJay

Veteran
Veteran
Joined
Jun 23, 2014
Messages
322
Reaction score
177
First Language
English
Primarily Uses
RMMV
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.
 

Galenmereth

Retired
Veteran
Joined
May 15, 2013
Messages
2,248
Reaction score
2,158
First Language
English
Primarily Uses
N/A
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 :)
 
Last edited by a moderator:

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,712
First Language
English
Primarily Uses
RMVXA
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.
 

Emre

Warper
Member
Joined
Jul 14, 2014
Messages
4
Reaction score
0
First Language
Not English
Primarily Uses
Thanks for helping...
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,865
Messages
1,017,059
Members
137,574
Latest member
nikisknight
Top