Thoughts: Move character while on moving object?

Get help using Construct 2

Post » Fri Feb 21, 2014 11:49 pm

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!
B
59
S
20
G
5
Posts: 212
Reputation: 7,390

Post » Sat Feb 22, 2014 5:33 am

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.
B
10
S
2
Posts: 135
Reputation: 1,090


Return to How do I....?

Who is online

Users browsing this forum: jatin1726 and 33 guests