Arrays?

appletreemanappletreeman Member Posts: 5
edited November -1 in Working with GS (Mac)
is it possible in GS to have 2 or 3 dimensional arrays?
Failing that, if you have a string of say 100 characters, can you read a certain point of the string? for example, just the 10th character?

Comments

  • quantumsheepquantumsheep Member Posts: 8,188
    No arrays just yet. Would be useful though (or so I've heard!)

    QS :)

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

  • tellardtellard Member Posts: 11
    One thing I am trying is packing arrays into strings. So for a tic tack toe kind of game you'd have:

    A = "100"
    B = "010"
    C = "001"

    indicating a winning diagonal. Right now I am trying to figure out a card game, it might be possible to use strings like "A23456789TJQK" to hold the names. But an array of 52 cards is not looking very feasible at the moment :-(
  • rebumprebump Member Posts: 1,058
    There is no substring or other string manipulation functions. Or am I missing something?

    I still wonder what the "index" datatype is for attributes. Couldn't find any info anywhere.
  • firemaplegamesfiremaplegames Member Posts: 3,211
    Index has always been there, but it is mysterious. There is no mention of it anywhere. Hopefully it just a placeholder for when/if they add Arrays or string manipulation. Both would be so awesome!
  • EastboundEastbound Member, BASIC Posts: 1,074
    Arrays would be awesome! I've had an idea for a game I want to make for a while now, but it would be too complicated without arrays.
  • rebumprebump Member Posts: 1,058
    Arrays, more string functions, and actor-to-actor interface/communications would make my current "test" game a lot easier. Starting to lost interest in it over another idea (or two). I wish I had the old Styx problem of "Too Much Time on My Hands" but I'm quite the opposite.

    Spawning with the ability to set custom attributes would help too.
  • wolfphantomwolfphantom Member Posts: 1
    the 'index' attribute is just an unsigned integer according the video briefly covering the different value types
  • ChunkypixelsChunkypixels Member Posts: 1,114
    Yup...arrays has been my most wanted update/feature for a while now, and I know a number of other users such as Tshirt and Firemaple have been arguing their importance and have been asking for them since before I started using GameSalad 14 months ago... so its definately long overdue.

    Theyre listed in the GS Roadmap for being implemented sometime in winter, but Steve, (the CEO of GS?) agreed in the Roadmap thread that they were his most wanted feature too, and that he'd try and get them brought forward if possible.

    So heres hoping that they somehow turn up in one of the sooner updates.... :)
  • steve86steve86 Member Posts: 806
    tshirtbooth said:
    I prey every night b4 i go to bed that Arrays are ready when i wake up in the morning.
    Still nothin!

    :(

    I read somewhere that they released the beta version of the next update to sous chef.. I'm also in the need of arrays. So I guess no arrays surprise in the next update :(
  • calvin9403calvin9403 Member Posts: 3,186
    steve86 said:
    I read somewhere that they released the beta version of the next update to sous chef.. I'm also in the need of arrays. So I guess no arrays surprise in the next update :(

    is that true?

    where?
    __________________________________
    http://www.gamesaladforum.com/
    http://gshelper.com/
    http://www.youtube.com/user/GameSaladCookbook#p/
  • RedlerTechRedlerTech Member Posts: 1,583
    tshirtbooth said:
    I'd tell you but I'm on my way to the hospital because my face is melted!!!

    MASALA <3333
  • calvin9403calvin9403 Member Posts: 3,186
    tshirtbooth said:
    I'd tell you but I'm on my way to the hospital because my face is melted!!!

    lol

    the hospital will be full of sous chefs
  • DizkoDizko Member Posts: 498
    I'm an ignoramus when it comes to this stuff, but what use do arrays have?
Sign In or Register to comment.