Search Unity

Move Picture without moving

Discussion in '2D' started by chernobyyl, Aug 7, 2019.

  1. chernobyyl

    chernobyyl

    Joined:
    Aug 7, 2019
    Posts:
    6
    Hey Guys
    I want to make a 2D Game and when my Players y is higher than the y from the object (like a tree) the sorting layer gets changed. I scripted everything fine but the position of the image is in the middle of the image.


    So my player have to go more steps up befor the layer gets changed. How can i change the position of the image without moving the y position?
    Thanks
    Timo :)
     
  2. chernobyyl

    chernobyyl

    Joined:
    Aug 7, 2019
    Posts:
    6

    sorry i failed to upload the image correct :p