Difficulties with Set Animation

This forum is currently in read-only mode.
From the Asset Store
Ninja char for your game! Make your own Shinobi game with this art.
  • I have two sprites with animations named the same things. I want to sync up their animations. I have an event,

    +Always

    -Sprite2: Set animation to Sprite1.AnimName

    -Sprite2: Set animation frame to Sprite1.AnimFrame

    Yet Sprite2 never changes its animation. Why?

  • Could it be because they are the same sprite?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • No. I actually WANTED it to be the same sprite, as it'd make thing easier, but this is to implement the OnionSkin thingy posted in the suggestion forum. It's definitely two sprites, with the animations from one painstakingly copied from one to the other.

  • Why wouldn't it work? Do you have the same animation names and number of frames in both sprites?

    Look at this cap, press 1, 2 or 3 to change animations... as you can see it works just fine.

  • Found my problem. I was setting the animation and THEN spawning the object, instead of the other way around. Every time I spawned a new object, it'd default to the 1st animation, and ignore the fact that I was setting a new one 4 ticks later. I had figured that I would be changing the master, and all copies would be the same as the master, but this turned out not to be the case.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)