✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python

AI can only take you so far. 🌟 Start with core skills in JavaScript, HTML, CSS, or Python. 🚀

Join the Treehouse affiliate program and earn 25% recurring commission!

New No-Code Track! 🚀start learning today!

🌟 Dreaming of a bright future? 🎓 Ask about the Treehouse Scholarship program! 🚀

✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python

AI can only take you so far. 🌟 Start with core skills in JavaScript, HTML, CSS, or Python. 🚀

  • Treehouse Logo
  • Plans
    Chevron
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
  • Library
    Chevron
    • All Courses
    • Tracks
    • College Credit
  • Techdegree
    Chevron
    • Overview
    • Front End Development
    • Full Stack JavaScript
    • Data Analysis
    • UX Design
    • Python
  • Community
    Chevron
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
  • Resources
    Chevron
    • Career Toolbox
    • CodeForward
    • Free Treehouse Near Me
    • Jobs
    • Blog
    • Support
    • About
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks College Credit
  • Overview Front End Web Development Full Stack JavaScript Python Development Data Analysis UX Design
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Career Toolbox CodeForward Free Treehouse Near Me Jobs Blog Support About
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • Android
      • • APIs
      • • Coding for Kids
      • • College Credit
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Game Development
      • • Go Language
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • No-Code
      • • PHP
      • • Professional Growth
      • • Python
      • • Quality Assurance
      • • React
      • • Ruby
      • • Security
      • • Swift
      • • Vibe Coding
    • Showing results for:
    • Game Development
    • How to Make a Video Game
    • Score, Enemies, and Game State
    • Script the Score Counter
    • Close
  • Tony Brackins
    Tony Brackins
    28,766 Points

    GetComponent in a class

    Posted on Oct 31, 2016 by Tony Brackins
    Tony Brackins
    28,766 Points
    • Game Development
    • How to Make a Video Game
    • Score, Enemies, and Game State
    • Script the Score Counter

    1 Answer

  • Jonathan Grieve
    MOD
    Jonathan Grieve
    Treehouse Moderator 91,254 Points

    Changing the Text based on number of flies caught

    Posted on Jul 4, 2016 by Jonathan Grieve
    Jonathan Grieve
    Treehouse Moderator 91,254 Points
    • Game Development
    • How to Make a Video Game
    • Score, Enemies, and Game State
    • Script the Score Counter

    1 Answer

  • Thale van der Sluijs
    Thale van der Sluijs
    1,756 Points

    Flies wont move and die anymore

    Posted on May 23, 2016 by Thale van der Sluijs
    Thale van der Sluijs
    1,756 Points
    • Game Development
    • How to Make a Video Game
    • Score, Enemies, and Game State
    • Script the Score Counter

    3 Answers

  • Daniel McTigue
    Daniel McTigue
    1,017 Points

    The Name "scoreCounter" does not exist in the current context.

    Posted on Mar 14, 2016 by Daniel McTigue
    Daniel McTigue
    1,017 Points
    • Game Development
    • How to Make a Video Game
    • Score, Enemies, and Game State
    • Script the Score Counter

    4 Answers

  • Kasie Okpala
    PLUS
    Kasie Okpala
    Courses Plus Student 314 Points

    Error in the complier:

    Posted on Feb 21, 2016 by Kasie Okpala
    Kasie Okpala
    Courses Plus Student 314 Points
    • Game Development
    • How to Make a Video Game
    • Score, Enemies, and Game State
    • Script the Score Counter

    2 Answers

  • Alex Goldberg
    PLUS
    Alex Goldberg
    Courses Plus Student 2,408 Points

    Consistent error at the end of the Script the Score Counter lesson

    Posted on Nov 16, 2015 by Alex Goldberg
    Alex Goldberg
    Courses Plus Student 2,408 Points
    • Game Development
    • How to Make a Video Game
    • Score, Enemies, and Game State
    • Script the Score Counter

    8 Answers

  • supraskyedev
    supraskyedev
    6,027 Points

    Error in the console: "Cannot implicitly convert type 'UnityEngine.UI.Text' to 'UnityEngine.Texture'

    Posted on Nov 15, 2015 by supraskyedev
    supraskyedev
    6,027 Points
    • Game Development
    • How to Make a Video Game
    • Score, Enemies, and Game State
    • Script the Score Counter

    1 Answer

Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.

    Treehouse

  • About
  • Blog
  • Careers
  • Community
  • Stories
  • Shop
  • Contact
  • Gift Card

See Full Catalogue

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
  • Python Development
  • Data Analysis
  • UX Design

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
  • ...see more

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
  • ...see more

Explore

  • Plans
  • Affiliates
  • Perks
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
Terms & Conditions | Privacy

© 2025 Treehouse Island, Inc.