Chaos Project

RPG Maker => Event Systems => Event System Requests => Topic started by: Intersection on December 18, 2012, 09:11:54 am

Title: Push/Pull Object System
Post by: Intersection on December 18, 2012, 09:11:54 am
I need to be able to push and pull objects around for my game; for example a crate, and I have the pushing part done, but not the pulling part. How do I make it?
Title: Re: Push/Pull Object System
Post by: KK20 on December 21, 2012, 03:28:29 pm
Easiest way, but probably not the best way, is to make it where the event is triggered by Player Touch. If the player presses the 'C' button, the player moves backwards and the object moves Toward the Player. If the player runs into the object, the object moves Away from the Player.

Don't forget to add in things like "Wait for Move's Completion" and "Un/Lock Facing".
Title: Re: Push/Pull Object System
Post by: Zexion on December 22, 2012, 03:48:11 am
I'll work on something right now, because I'm going to need it for my game anyways.
Title: Re: Push/Pull Object System
Post by: Vexus on December 23, 2012, 05:19:47 am
Here:

Spoiler: ShowHide
(http://img811.imageshack.us/img811/6655/rockmoveevent.png)


You can change which buttons to press when pulling or pushing and well walla! (This way also doesn't give an error or game getting stuck when you try to push or pull and there is nowhere you can move)

You're welcome :)
Title: Re: Push/Pull Object System
Post by: Zexion on December 23, 2012, 06:58:22 am
That's so wierd. I had mine set up exactly like that, and it didn't work...
Title: Re: Push/Pull Object System
Post by: Vexus on December 23, 2012, 07:28:48 am
It works on mine.

But I noticed I cropped the picture wrong and there are 2 else under player is facing left event, there should be only one.

Note, this is done in common event then called in the event you need it. (Well that's how I made it work)

[Edit]

Forgot to say, you need to hold Z and press enter to make it go backwards.
Title: Re: Push/Pull Object System
Post by: KK20 on December 23, 2012, 02:34:34 pm
I was trying to think of a way where you hold C next to the object and press in the opposite direction to pull it. Found out that it's a lot more complex than it first seems.
500 posts get!
Title: Re: Push/Pull Object System
Post by: Intersection on December 28, 2012, 02:20:10 pm
Oh  god I completely forgot to reply here I thought the reply was sent.

I resolved this with KK20's method.