Object Moving

Hi guys!

i’m quite beginner in UNITY and i need some help for my 2D game :frowning: its a runner adventure and im facing an issue with objects.

the main character its a panda, and he needs to dodge some items otherwise he die, but i need to know how can i make that dead object can move from right to left in the screen. The object is currently static on the screen (but dynamically generated) but its so simple and easy this way.

Hope you can help me!
Sorry about my english!

Cheers

Is that what you mean?

float clock = 0;

    void Update()
    {
        clock += 3f * Time.deltaTime;
        transform.position = new Vector3(Mathf.Sin(clock) * 5, 0, 0);
    }

yes sir! i will try!

thx