Modding Help Mirror the player image when sitting

Discussion in 'Starbound Modding' started by bizzy401, Dec 17, 2013.

  1. bizzy401

    bizzy401 Subatomic Cosmonaut

    Here is the code I am using;


    Code:
      "objectType" : "interactable",
      "interactAction" : "sitdown",
      "sitFlipDirection" : true,
      "sitPosition" : [0, 30],
      "sitOrientation" : "lay",
      "sitAngle" : "0",
      "sitEmote" : "sleep",
      "sitCoverImage" : "/objects/generic/cryotube/cryotube2.png",
      "sitStatusEffects" : [
        { "kind" : "Nude" },
        { "kind" : "Health", "amount" : 0.1 }
      ],
    Is there a way to mirror the player image?

    Thanks for any help in advance.
     
  2. Magician Xy

    Magician Xy Ketchup Robot

    Not entirely sure what you're trying to accomplish. Could you explain a little more?

    Based on the little code snippet you've given, I'd try modifying the setFlipDirection or sitAngle values.
     
  3. bizzy401

    bizzy401 Subatomic Cosmonaut

    In this example the player will be sleeping in the upright position...he is just facing the wrong way...so I need to mirror the sprite.
     
  4. Nightmares

    Nightmares Scruffy Nerf-Herder

    With the combination nude and reversed sit position I thought you were making an npc stripper.
     
    Last edited: Dec 17, 2013
  5. MikeyTwoGuns

    MikeyTwoGuns Tentacle Wrangler

    Setting sitFlipDirection to false should fix your issue, though I haven't tested it. I'm also messing around with beds, so please let us know if that works or not!
     
  6. Magician Xy

    Magician Xy Ketchup Robot

    Bouncing off of this advice, I would use a combination of sitAngle (to rotate the player in an upright position) and sitFlipDirection (either true or false) to achieve the results you want.
     

Share This Page