rashstone's Recent Forum Activity

  • Thanks for the quick reply! I'll give this a try as soon as I can.

  • Evening folks!

    This might be the biggest newbie question ever, but how do I get an array to return a number on the same line as an item's name?

    Lemme explain...

    So I'm building a game about collecting different types of fish, and I figured the best way to start would be just to make sure I can get the core basics for the game first.

    I get my "test" build done, just a button that tells me what fish I got, and some text that tracks how many I caught. Good! That's exactly what we're looking for, so why am I asking a question? Well...

    This is horribly inefficient. If I wanted to add more fish to the list, It would just be repeating a ton of code just to track the fish, and while I'm not sure if it would, I feel like it might lag out the game a little to have this much repetition.

    I tried to add an instance variable it would look for, or try to just use the text from the array itself to update a number, but it just wouldn't work because they're 0-based. Here's where I stopped before getting too upset over the lack of progress:

    Is there any way I can make the array iterate based on the fish I caught, and then add a number to the (2,Y) segments? (1,Y) is where I'm storing fish ID numbers for now.

    Whoops! Forgot to add the little array I set up to make it easier to explain. Here it is:

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Evening folks!

    This might be the biggest newbie question ever, but how do I get an array to return a number on the same line as an item's name?

    Lemme explain...

    So I'm building a game about collecting different types of fish, and I figured the best way to start would be just to make sure I can get the core basics for the game first.

    I get my "test" build done, just a button that tells me what fish I got, and some text that tracks how many I caught. Good! That's exactly what we're looking for, so why am I asking a question? Well...

    This is horribly inefficient. If I wanted to add more fish to the list, It would just be repeating a ton of code just to track the fish, and while I'm not sure if it would, I feel like it might lag out the game a little to have this much repetition.

    I tried to add an instance variable it would look for, or try to just use the text from the array itself to update a number, but it just wouldn't work because they're 0-based. Here's where I stopped before getting too upset over the lack of progress:

    Is there any way I can make the array iterate based on the fish I caught, and then add a number to the (2,Y) segments? (1,Y) is where I'm storing fish ID numbers for now.

rashstone's avatar

rashstone

Member since 12 Sep, 2021

None one is following rashstone yet!

Trophy Case

  • 3-Year Club
  • RTFM Read the fabulous manual
  • Email Verified

Progress

5/44
How to earn trophies