Search Unity

2D Object stuck on nothing

Discussion in '2D' started by TheClown456, Dec 6, 2018.

  1. TheClown456

    TheClown456

    Joined:
    Dec 6, 2018
    Posts:
    2
    I'm trying to make some basics mechanics on a endless runner, but for some reason, my objects are getting stuck on nothing.



    (This box is the UI canvas)

    It look like my objects cannot pass the "0" position. Weird. Anyone have any idea on how to fix it?
     
  2. PapzZ

    PapzZ

    Joined:
    Jan 5, 2015
    Posts:
    30
    Your Image in Canvas can't go (i think bcs i m not pro in canvas / ui) out of canvas, if you want a collectable diams système you need to create GameObject like prefabs and instanciate it by script
     
  3. TheClown456

    TheClown456

    Joined:
    Dec 6, 2018
    Posts:
    2
    Already Fixed ^^ Thanks, it was a problem in the code that was moving the diamond. I removed 1 line of code, and worked fine <3
     
    PapzZ likes this.