problem flip horizontally actor with camera control

wolltywollty Member Posts: 102
Hello everyone
I can not flip horizontally actor with my camera control
I attach a demo
https://www.dropbox.com/s/c9pfdhci48f6ll8/actor_flip_camera_control.gameproj.zip

on the left side of my scene the actor flip perfectly
but not in the right part of the scene

I do not understand what is wrong and where I'm wrong
(maybe camera origin?)

thanks for the help
and your attention

Comments

  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    this video has you're answer.

  • wolltywollty Member Posts: 102
    thanks
    Now I understand where wrong
    i forgot to put camera offset (camX) in the actor that must flip

    rule left
    when game.mouse.position.X < self.position.X - game.cam.X
    then change attribute
    self.graphics.flip.horizontally to true

    rule right
    when game.mouse.position.X > self.position.X - game.cam.X
    then change attribute
    self.graphics.flip.horizontally to false


    now it works perfectly
    thanks @FryingBaconStudios


    :)
  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    Great! Yes expanded scenes can be tricky for mouse positions.
Sign In or Register to comment.