problem flip horizontally actor with camera control
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
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
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
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
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS