Search Unity

Animation & Spawnpoint

Discussion in 'Editor & General Support' started by bentehuhh, Jan 14, 2019.

  1. bentehuhh

    bentehuhh

    Joined:
    Jan 13, 2019
    Posts:
    1
    Hello,

    I'm just starting Unity again and i'm having a hard time figuring out this problem.

    (at the moment) I have 2 gameObjects/Bubbles. I've put an animation on those bubbels so the'll float up.
    For these bubbles I have a destroyscript so they'll be destroyed after 6.0f.
    I have also have a Random spawnpoint script.

    Now the 2 scripts work together if there is no animation on the bubble. But if the animation is attatched to the bubble, the bubble won't spawn on the spawnpoints but in the middle of de project.



    The game wil eventually have >100 different bubbles that wil float up and that you can touch so they'll dissapear. Is it smart to learn the is of arrays for this or do I have tot look elsewere?


    I'd love to learn by doing it myself but i couldn't figure it out in the last 2 days...
    Hope you can help!
     

    Attached Files: