0 Favourites

Thoughts: Move character while on moving object?

  • Hey everyone!

    Just needed to see if anyone else has tried this and has any suggestions on best way of attempting this:

    -Space game, you can fly the ship around through space but I want to be able to hit a button and the character can then get out of the pilot seat and move around the ship while still moving along with the ship (ship is still moving forward).

    I was testing with simply having the ship moving along with custom movement and setting it's speed like the custom movement example, but then the character sprite is updated every tick to be moving at the movement angle of the ship. During that every tick, if you are using wasd it will move the character another pixel in that direction also.

    This sort of works and I could add more to it but I was just hoping there might have been a better way of attempting something like this?

    Thanks for listening!

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
  • I would do this as follows:

    The Spaceship does not really move. Everything around it moves, giving it the illusion of moving. If you than control the player there is no problem of aligning the player to the ship angle or anything like that.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)
Similar Topics Posts Views Last Post
Unread hot topic
564 105,239
rexrainbow's avatar
rexrainbow
Unread hot topic
167 14,515
DMT2005's avatar
DMT2005
Unread hot topic
0 Favourites
Time to move forward?
110 9,563
GG-Works's avatar
GG-Works