How to change position of staticmesh with other staticmesh?

Good evening … I’m doing a puzzle game (Farm Hero style) and I’m having a problem swapping a staticmesh with another staticmesh that was preached by the player. How do I move a staticmesh ??? (It would be same to change a position icon in the taskbar of windows 10 …)

follow this logic

120713-untitled.png

You can move them instantly or with motion - Which are you looking for?

If you just want to swap them, store the world location of objectB in a variable, then use the teleport actor function on objectB, with objectA’s world location. Then use the teleport actor function again on objectA with the stored variable location.

GetActorWorldLocation(ObjectB) to VariableA → TeleportActor(ObjectB) to GetActorWorldLocation(ObjectA) → TeleportActor(ObjectA) to VariableA.

I threw together a quick example project that just swaps the position of the two most recently clicked boxes (or clears them if you click the Cancel box)

It is a bit messy but should give you an idea on at least one method.

[ClickSwitch Project][2]

But would not have a way to do this without clicking the beginning and the end … just clicking and browsing ???

thanks friends