How do I make a sticker

The sticker would be able to be put onto a specific object. you would be able to move that sticker around on the object, but you cant move it off of the object.

Edit: if the object it is on moves, it stays in place relative to the object

There is behavoir Stick objects to others - GDevelop documentation

1 Like

is there a way to move the sticker anywhere on the object, but not off of the object?

1 Like

I dont now, you can always try.

1 Like

You you move sticker with x and y

It would depend on the shape of the object and the sticker. The sticker behavior updates the location if the sticker is dragged but it would probably be best to unstick the sticker and restick.

Sticker is being dragged
Trigger once
Unstick the sticker

Sticker was dropped
Stick sticker

As for limiting movement, it depends on the shapes. A rectangular shape would be easier to limit movement based on the bounding box. A circle could use distance from the center.

An irregular shape could use the collision mask but it’s tougher because when dragged, things don’t get updated pixel by pixel on each frame depending on how fast an object is dragged.

Tell use the type of objects and someone can help you from there.

I have found a solution, which i will be including images here

Fakestickercube=button to spawn stickercube
StickerCube=Sticker (is draggable)
Spawn=object that the sticker is sticked on (is draggable)
Cubey=Player