Forum rules - please read before posting.

Custom Legacy Animation is played instantaneously

Hello,

1) I created a simple Legacy Animation for an object (a boat). Just move on X axis in 2 second. I tested the animation and is working fine.

In my Action List I have the following setup:
p.s. the camera is set to follow the boat object.

When I run the game, as soon as the animations should start, the boat is instantaneously teleported to the destination (end of animation).

2) While trying to setup this particular scene I was thinking that I could use an action to orientate the camera toward a point (game object is fine). Is this a way to do this from the ActionList Editor?

3)And another related question (maybe?) Can we move objects (similar to Path) without using a NPC script?

Comments

  • 1) The ActionList looks fine.  Generally though, you should rely on Mecanim for animation playback - Legacy is far outdated by this point.  You can still rely on your created animation - just create a new Animator for the boat, give it a default animation as well as your moving animation, and modify the Object: Animate Action to play that animation by name.

    2) Any GameCamera that can move follows the player by default.  However, by unchecking Target is player? in the GameCamera's Inspector, you can assign any GameObject as that camera's target.

    3) No.  You can, however, use the Object: Transform Action for simple movement from one point to another.
  • 2) I know about that, but I want to rotate the camera in certain situations. For example I want to have this camera on the beach, the boat si moving, the camera is following the boat (this can be done as you said)

    After that I want to rotate the camera to another object... But I assume I could simply use another camera which is already following the second object..
  • @ChrisIceBox
    I dont want to complicate myself with mecanim for now, because is just a simple move animation X axys.

    regarding point 3) I tried to use ObjectTransform and my object is still teleporting: https://i.imgur.com/cYJbtsB.png


  • 2) You can also animate cameras by parenting them to GameObjects with Animator components, and then animating the parent.

    3) This is being run from an ActionList asset?  Test a local Cutscene in your scene that does the same thing - does it work then?  That both Actions appear to run instantly suggests that the ActionList is somehow being skipped - though this should only happen when the user invokes the "EndCutscene" input.  Do you have such an input mapped?
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.