Flipping pictures...?

● ARCHIVED · READ-ONLY
Started by MaxLionheart 6 posts View original ↗
  1. I apologize if it's super simple to do but...

    ...is there a way to flip a picture with the event editor? (for example, a picture of a character looks to the left, and I want to make it look to the right)

    I haven't been able to find how... Do we really need a plugin for that?

    Thanks

    Note: No, having two versions of each image is not an option for me.
  2. I think than this:

    Game_Screen.picture[ id ].scale.x = -1;as a script call is all you need to switch picture as mirror...

    Or (sorry for the spanish translation I can't change it... :c)
     

    bbcfc243cc.png

    Notice the -100%, it switches the image... really, at least in PIXI...
  3. Are you talking about pictures?  Or faces?  Or sprites?
  4. Wow.... I never thought adjusting the width of a picture to a negative number would flip it... Thanks for this found :)

    But I haven't been able to make the script command function. The game shows an error saying: TypeError "Cannot read property '1' of undefined"

    (sorry, I'm super noob at script stuff, I don't understand what it means...)

    Shaz: I'm talking about pictures (I'm using characters pictures to make dialogs)
  5. MaxLionheart said:
    But I haven't been able to make the script command function. The game shows an error saying: TypeError "Cannot read property '1' of undefined"
    Sorry I didn't write it right:

    $gameScreen.picture( 1 ).scale.x = -1;Still the picture needs to exists before you attempt to do that.

     

    Shaz said:
     Or sprites?

     
    For this should be:

    sprite.scale.x = -1;Quite different from ace...
  6. It's showing another error: "Cannot set property 'x' of undefined"

    The picture has been created beforehand.

    But the other way works fine as it is. Thanks buddy :)