Moving attached objects

So i’m trying to make a super simple upgrade system that uses the same object for every upgrade. But this is done by sending messages to attached objects so that the upgrade is linked to only one tower. But… you can’t move attached objects.
I would post the game, but it truly won’t change the outcome.

I want this to be similar to BTD’s upgrades where they are on a separate panel.
Thank you

3 Likes

Wrong again :upside_down_face:
Always (1,2)
(1 (get)) Number [the X position you want] (out (3))
(2 (get)) Number [the Y position you want] (out (4))
(3 (+X)) (4 (+Y)) Position [set to pixels]

1 Like

I’m lost, I have a position thing, but it doesn’t move the attached object.
It’s stuck by the tower

2 Likes

You have to do it on the +X and +Y

1 Like

So then, how do I do that and manage to get it in the same position every time?

2 Likes

Just get the coordinates you want, and instead of putting them in the regular X and Y, put them i the + X and + Y

1 Like

They still don’t move, it activates and they go right back to the tower.

(Dagger Gnoll)

2 Likes

bruh you forgot the always :upside_down_face:

1 Like

Even with that, the position is always dependent on where the tower is place.

2 Likes

Then have the tower send a message to the attached object containing its position. In the attached object, you can make those two messages set the X and Y numbers.

1 Like

How do you send a position through a message?
Also wouldn’t that just make it go to another off set spot?

2 Likes

(get) number [the X or Y] (out) → (in) message

OK so then after that, how do I make it calculate what to add/ subtract to get to a certain spot?

1 Like

You literally just do this:
image

And then just set B to whatever you need it to be. If this doesn’t work, just mess around in the expressions until you get the desired result

1 Like

I have no clue how to use this, (I’m so incredibly annoying rn, and I’m sorry.)

1 Like

Yes, you are :upside_down_face:
I’ll give you a better explanation later, I’m busy rn

2 Likes

An official offset is in the todo list on the Trello.
But for now, using an Always to Number to Position has to be used.

2 Likes

image
It’s sending the right coordinates, but yet, I have no clue where the object actually is.

Seriously all I need is for it to get the location of the object and then add or subtract to get to the desired location.

you have to do an actual equation, bud, otherwise it’ll just be that number every time :upside_down_face: