0 Favourites

How do I Make Object move relative to another object

  • I want to make one object and its a player sprite and it moves (like in a platformer) but theres this part where I want it moves onto a disc that goes in a circle and I want the player to move WITH this object but maintain its own movement position relative to the others.

    So if you move off the disc (i. e. not overlapping) you fall(well play death animation anyway) and if you are still overlapping you can move around the object WITH the other objects movement (meaning relative to it, like we are relative to this planet and dont fly off because we are under the effects of its gravity)

    so how do I do this without using physics? i want to do it with just math and X and Y to save CPU.

    basically i want a small sprite to move with a larger one but still maintain its own x and y pos relative to the larger image and be able to move around while on it but can also move off of it. anyone know the simple mathematical formula to remember for moving an objet relative to another objects movement or speed ??

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
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,225
rexrainbow's avatar
Unread hot topic
167 14,513
DMT2005's avatar
Unread sticky
1 Favourites
C2 Games made with CocoonIO
136 89,836
minhcuong's avatar