Quantcast
Viewing all articles
Browse latest Browse all 125

randomly spawn objects and hide after hit

hi guys, hope you'll be able to help me out. I'm currently trying to implement a superpower trigger to my game (little mushroom). I want to spawn it randomly on the x and y axis. Having a sidescroller I currently are able to move my mushrooms to the left but only those I copied into the current scene. my questions: How do I infinitely spawn those objects in a random spot? And how do I make it invisible after it was hit? Tried to do it with a trigger and destroy script, but destroying the game object seems like the wrong idea. best wishes

Viewing all articles
Browse latest Browse all 125

Trending Articles