4 way PUSH/PULL OBJECT help

0 favourites
  • 8 posts
From the Asset Store
Hand-painted tiles, objects, animated objects, and background to build a colorful Mayan civilization environment.
  • Hey guys, hope you all are well. I have a bit of an issue with this mechanic I'm trying to create. I've crawled through the forum in search of a four way push/pull object, but only managed to find platformer push and pull so I created my own with the references.

    It works for the most part, except I can't figure out how to create it so that when you're in contact with the left/right face of a box, you can only push or pull it horizontally as opposed to being multi-dimensional. I'm terrible at explaining but essentially what I need help with is keeping vertical push/pull restrained to the north and south of a box and horizontal push/pull to the east and west of a box.

    Here's the capx: dropbox.com/s/mzxcjhjnswy3zae/pushpull4way.capx

    I look forward to your help! Thanks!

  • I've just spent the last week on this issue myself, on and off. I'll take a look at yours when I get home and make it so it works.

  • Hey, thanks emoaeden, I look forward to what you come up with. Also, I realize that it's not efficiently coded. Still a lot of work needed. That begs the issue; it seems that Construct 2 is better suited for a platformer as opposed to top-down. Why?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • dl.dropboxusercontent.com/u/108799982/Capx%20Demos/SimpleBox.capx Give that a shot. You can drag multiple boxes at the same time, but I'm sure you can fix that,as I've got to run to uni. If you can't get it, you'll have to wait until tonight for me to fix it <img src="smileys/smiley1.gif" border="0" align="middle" />

  • Hey thanks buddy, I can't access it since apparently it's saved in a version higher 127, which I find bizarre. I'll just patiently wait.

    I also take it you're in the UK or AUS/NZ?

  • I'm in Australia, why do you ask ? Is it 'cause we use Uni instead of College ?

  • Yep! My Oceania friends refer to college as Uni. Also, time difference is noticable.

  • Okay, so I was able to download and access it via Beta and used your piece as a reference. It works for the most part except for one final snag.

    On the right side push or pull, it won't stick but instead up and down works for some reason. I have a feeling a condition is off somewhere.

    In anycase here's the CAPX:

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)