Since the last AC update some of my characters that move around the scene and have walkto markers teleported to them using Object:Teleport to move the marker to an empty game object attached to the NPC, then move the player to the marker in order to talk with them have stopped working correctly. Here's the current behaviour:
Big Bonus (the big pig in the cowboy hat) has a game object called MarkerChild on him. Here's its original position:
[img]https://i.imgur.com/m5ihiKg.png[/img]
x 7.5 y 0 z 0
Just off screen is his walkto marker:
[img]https://i.imgur.com/fPgyy1h.png[/img]
The beginning of this action list is the bit that teleports the walkto marker to the markerchild:
[img]https://i.imgur.com/GZ3BbNM.png[/img]
Problem is, as soon as Big Bonus moves around in the scene, the marker child (which used to stay at relative x 7.5) seems to drift onto his root position:
[img]https://i.imgur.com/xd6MPKG.png[/img]
When the actionlist runs, the walkto is teleported parallel to the marker (which has moved out of the right position) on x, but way offscreen on y:
[url=https://imgur.com/E9BMGuh][img]http://i.imgur.com/E9BMGuh.png[/img][/url]
Hopefully the details are readable in the screenshots. Essentially it breaks down to the following:
Human error (it very much could be) or did something change in AC 1.72.4 that knocked this feature askew?
Thanks everyone for your help!
(PS what's the correct imgur link to get these to appear inline :-) )
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
If your character has Turn root object in 3d?, then they will rotate around the Y-axis as they turn. The sprite-child won't be affected, as it'll always face the camera, but child objects - such as MarkerChild - will be.
So, you probably need to uncheck this option. That will keep MarkerChild in a fixed position relative to the root. If you want it to move based on which direction he's facing, incorporate its position in the character's animations.
I'm not totally clear on your intent - you're attempting to teleport BonusWalkTo relative to MarkerChild, but with no "Teleport to" field set. Previously this would have done nothing - but now it causes the object you're teleporting (BonusWalkTo) to be used as a temporary replacement.
Your screenshots don't show position gizmos, so I'm not clear where the objects referred to actually are. But a couple of things to be aware of:
A combination of Turn Root Object in 3D: Off and placing marker scripts onto those game objects allowed me to dispose of all the messy teleporting for good, thanks Chris!