Discuss Scratch

Verstarken
Scratcher
4 posts

I need to make a sprite tethered to another in zero gravity!

Im working on a space delivery game where the player controls a spaceship and delivers cargo to a certain point, ive gotten the ships rotation, movement and look worked out, but I cant seem to get the cargo working in a way id like it to.

My game:
https://scratch.mit.edu/projects/758390901

Id like the cargo to have real zero gravity physics and actually move around and rotate when the ship turns and steers, while being tethered to it with a piece of pen rope.

Currently the cargo is just facing towards the spaceship and moving whenever it gets too far away, which is pretty boring.

I cant find a way to do this. If you have any ideas on how to do this, please remix my shared project!

Thank you!
Itz_Wolfram
Scratcher
66 posts

I need to make a sprite tethered to another in zero gravity!

Verstarken wrote:

Im working on a space delivery game where the player controls a spaceship and delivers cargo to a certain point, ive gotten the ships rotation, movement and look worked out, but I cant seem to get the cargo working in a way id like it to.

My game:
https://scratch.mit.edu/projects/758390901

Id like the cargo to have real zero gravity physics and actually move around and rotate when the ship turns and steers, while being tethered to it with a piece of pen rope.

Currently the cargo is just facing towards the spaceship and moving whenever it gets too far away, which is pretty boring.

I cant find a way to do this. If you have any ideas on how to do this, please remix my shared project!

Thank you!
maybe try thi
DlSCUSS
Scratcher
97 posts

I need to make a sprite tethered to another in zero gravity!

Just set the minimum distance in the cargo sprite to 40, and then done!

Powered by DjangoBB