Array workarounds?

elgenaroelgenaro Member Posts: 14
edited November -1 in Working with GS (Mac)
Are there any workarounds?

Apart from solutions like "Create 100 scenes and only use a couple of them", as in this post:
http://gamesalad.com/forums/topic.php?id=15483#post-117937
Are there other options?

Comments

  • AsymptoteellAsymptoteell Member Posts: 1,362
    you're always gonna need tons of something. Maybe scenes, maybe actors, maybe attributes. No matter what, though, you'll need a lot of things.
  • quantumsheepquantumsheep Member Posts: 8,188


    QS :D

    Dr. Sam Beckett never returned home...
    Twitter: https://twitter.com/Quantum_Sheep
    Web: https://quantumsheep.itch.io

  • AsymptoteellAsymptoteell Member Posts: 1,362
    well done.
  • elgenaroelgenaro Member Posts: 14
    LOL!!!

    *sighs*

    So to fake arrays are there how many routes? I've so far stumbled upon two:
    1.- Create lots of images with the correct solution in the scene, or
    2.- Create lots of scenes with the correct solution, right?
    Am I missing another way?

    thx!
  • RHRH Member Posts: 1,079
    What are you trying to do with them? I don't really have a clue what arrays do, only a general idea and what they can do in 3DSMax.
  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
    The general consensus is that the workaround for arrays is not really worth the time and effort it takes to put into them. You have to have a killer game idea to make it worth it in my opinion.
  • elgenaroelgenaro Member Posts: 14
    @RH: In programming an Array is a list that stores all available elements so you can get, in this case, a random element.

    I'm into an educational app, and there's no way to avoid this since the "randomness" is a fundamental part of the whole system, so I'll have to implement randomness one way or another...

    My "solution" will be a mix of frequent updates to make it look like the activities have changed and also via "random" scenes (yes, Matrix stockroom! LOL).
    That's so far the strategy for Web publishing (I'm still undecided about how to solve this for iOS).

    Thanks jonmulcahy!
  • quantumsheepquantumsheep Member Posts: 8,188
    RH said:
    What are you trying to do with them? I don't really have a clue what arrays do, only a general idea and what they can do in 3DSMax.

    The way I got to understand them properly (just recently as well!) is via this example:

    Street Fighter 3DS has a rather lovely figurine collection mini-game.

    Essentially, there are 500 figurines to collect. Every time you win one, it gets taken out of that list of 500 and added to your 'won' figurines.

    I'd love to do something like that in GS, but it would require arrays.

    The 500 figurines would be in an array. The game would pick one figurine out of that list of 500. The array would now have 499 figurines, so there's no way to pick the same one again.

    I think that's it!

    QS :D

    Dr. Sam Beckett never returned home...
    Twitter: https://twitter.com/Quantum_Sheep
    Web: https://quantumsheep.itch.io

  • elgenaroelgenaro Member Posts: 14
    In case anyone needs to solve this in the future, there's a boolean example in
    http://gamesalad.com/game/play/23588
    or just search: "my awesome gamesalad game" inside the GameSalad app
  • IsabelleKIsabelleK Member, Sous Chef Posts: 2,807
    quantumsheep said:
    The way I got to understand them properly (just recently as well!) is via this example:

    Street Fighter 3DS has a rather lovely figurine collection mini-game.

    Essentially, there are 500 figurines to collect. Every time you win one, it gets taken out of that list of 500 and added to your 'won' figurines.

    I'd love to do something like that in GS, but it would require arrays.

    The 500 figurines would be in an array. The game would pick one figurine out of that list of 500. The array would now have 499 figurines, so there's no way to pick the same one again.

    I think that's it!

    QS :D

    I was wondering about your example QS, and I understand that it would be easy to do with arrays, but for wanting nothing is too difficult.
    I would create 500 images and 500 attributes, each for every figurine. Put one blank actor in "You win" scene and make a HUGE rule. I'm sure that you know it - you're very experienced, so I won't explain what would I do next, but I just want to let you know, that if I need something like that in my game, I will do it in that way, without waiting few months for arrays.
Sign In or Register to comment.