How do I push an object along a path automatically

0 favourites
  • 5 posts
From the Asset Store
Hand-painted tiles, objects, animated objects, and background to build a colorful Mayan civilization environment.
  • I am trying to make sort of like a puzzle game where if the player pushes a box from one direction (let's say from the left) then the box will move to the right until it hits a wall. Then the player has an option to go to that box and then push it either up or down until it hits a wall and keeps doing this until it reaches the goal.

    I have tried using Bullet but for some reason it doesn't work well as the box will go through solids and even though I can get it to stop by using overlapping. Then I won't be able to push up or down as it is still overlapping and pushing it makes the player actually push it along the path which is not what I want. The end goal is to be able to make the box move along the path automatically after the first "touch" to the first waypoint and then the player can push it to the next waypoint.

    Hope I explained it well enough, thanks!

    Tagged:

  • Check this: fileport.io/yWz8cKs42Qts

  • It's exactly what I'm looking for! Thanks a lot! Yours is so simple as well. Just a quick question regarding the walls, I'm guessing it is a tilemap but can't seem to find it in your project list?

  • It is locked.

    Right click on the layout, then select the option: Lock > Unlock all

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Learn something new every day, this completely solved my issue thanks!

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