Quantcast
Channel: Answers for "Snake Game problems - errors"
Browsing all 4 articles
Browse latest View live

Answer by Graham Dunnett

You have a gazillion problems. I've editted your script and added some comments. Maybe watch some of the scripting tutorials on the Learn site. A common mistake is you do not write if statements...

View Article



Answer by AndreasX12

Okay, so the error is in this line of code: food = 0; As far as I know, you can't change a gameObject to 0. I'm sorry, but I can't help you further than that :-) Thanks, Andreas :-)

View Article

Answer by Graham-Dunnett

You have a gazillion problems. I've editted your script and added some comments. Maybe watch some of the scripting tutorials on the Learn site. A common mistake is you do not write if statements...

View Article

Answer by AndreasX12

Okay, so the error is in this line of code: food = 0; As far as I know, you can't change a gameObject to 0. I'm sorry, but I can't help you further than that :-) Thanks, Andreas :-)

View Article
Browsing all 4 articles
Browse latest View live




Latest Images