x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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 ...)

alt text

follow this logic

alt text

Product Version: UE 4.14
Tags:
aaa.jpg (30.6 kB)
untitled.png (18.5 kB)
more ▼

asked Jan 03 '17 at 08:54 PM in Blueprint Scripting

avatar image

Tognere
6 2 4 4

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

4 answers: sort voted first

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

more ▼

answered Jan 03 '17 at 09:23 PM

avatar image

Looniper
766 22 7 36

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

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.

more ▼

answered Jan 03 '17 at 11:04 PM

avatar image

Morkath
136 4 5 13

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

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)

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

ClickSwitch Project

switching.png (69.8 kB)
clickswitch.zip (1.3 MB)
more ▼

answered Jan 03 '17 at 11:56 PM

avatar image

Looniper
766 22 7 36

avatar image Tognere Jan 04 '17 at 06:24 PM

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

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

thanks friends

more ▼

answered Jan 05 '17 at 07:03 PM

avatar image

Tognere
6 2 4 4

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question