Can the "player" pick up and carry and object?

I have some students who want their player to pick up and carry an object. Can this happen?

Hi @heather.caster,

I haven’t tried this, but it sounds like they might want to try creating two sprites: player and object. Then, if player is touching object, object.x and object.y become player.x and player.y. Maybe they’ll even want the costumes to change to make it look better? If you link to the project someone can take a closer look.

The student would also have to figure out a way for the player to put the object back down.

Thanks,
Michael K.

Thank you! Here is the project so far…

So here’s a quick remix of his project. I wasn’t 100% sure what the reset was supposed to do as it conflicts with the initial instruction of what to do if the fishingPole is touching the fish, so I commented it out in my version, but this is a quick demo of how the fishing pole could pick up the green fish.

Once it touches the fish, the x & y values of the fish become directly related to the x & y value of the fishingPole making them appear to be connected (while still remaining two distinct sprites).

Of course, he will then probably want to figure out how to “disconnect” them, perhaps when the fish gets dragged high enough on the screen or makes it into the boat?

Hope this helps a little.

Mike