Forum rules - please read before posting.

How to set Frame Flipping on Player Prefab in scene

Are you able to show me how I would change the Frame Flipping setting on my Player prefab in scene? In some scenes I would want my player prefab to flip Left mirror right and in another scene set it to none.

Comments

  • Place on a GameObject, and use the Object: Call event Action to call the component's functions:

    using UnityEngine;
    using AC;
    
    public class SetPlayerFrameFlipping : MonoBehaviour
    {
    
        public void SetToNone ()
        {
            KickStarter.player.frameFlipping = AC_2DFrameFlipping.None;
        }
    
        public void SetToLeftMirrorsRight ()
        {
            KickStarter.player.frameFlipping = AC_2DFrameFlipping.LeftMirrorsRight;
        }
    
    }
    
  • Thanks for this Chris, but it's having no effect on my player. The prefab is set to frame flip but the script does not affect it in anyway. See video:

    https://www.dropbox.com/s/y3qap5smn5cz4cg/FrameFlipNotWorking.mov?dl=0

  • The Action must call the component's function - not the script directly.

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.