Need some guidance for my first game!
Hey guys!
I'm looking to create an infinite runner game for my first game ever and I am currently stuck on a bit of coding.
I'm planning on randomly assigning a color to my player and the player will have to go into the same color in order to pass (out of red, blue & green) and if the player is, for example, blue and it passes red, it will die.
I'm not exactly sure what the best way to do this is... Is there a way I can set a variable to each colour and I can use that to randomly assign my character the variable/colour and kill the player?
Thank you for taking the time to read this!
Your answer
Follow this Question
Related Questions
Scene change and creative cube game object 1 Answer
How to store all components of a GameObject in an array? 0 Answers
Value doesn't change in game when updated. 2 Answers
Destroying game object 0 Answers