0 Favourites

How do I make the player move with another object...

  • How do I make the player move with another object, yet still be able to move around relative to the object. In other words, what is the best way to let the player walk around on the deck of a moving ship. (the ship may be rotating and accelerating all the while). Don't bother saying to just pin the player to the ship, that doesn't allow player movement)

  • Something like this?


  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
  • brunopalermo Yes, but it doesn't do rotation, and I notice the white square continues to move when the platform changes direction. While that seems to imitate real life inertia, it isn't actually scripted to do that (as far as I can tell) and is therefore an undesirable side effect (due to lag, maybe?).

    To make matters worse: In my game the ship has walls which have solid behavior, and the ship is controlled through custom movement behavior. The player is currently controlled through 8 direction behavior (while I experiment). I got the player to move around on the ship and stay with the ship by applying the same angle and acceleration to the player as I do to the ship. This works pretty good, but all the walls solid behavior lags behind the graphics of the walls while the ship is moving. So even though you see a wall where it's supposed to be, it won't stop you from moving until you are further aft of it (the exact difference depends on how fast the ship is moving).

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