Using Tables for the first time

ZombiebrainsZombiebrains www.zombiebrains.co.ukMember, PRO Posts: 296
edited January 2014 in Working with GS (Mac)
Hi folks

I am looking to do a new app using tables.

I have an idea to show a story in bits. I have set up a main window actor showing text (ACTOR CALLED - SENTENCE) and and another smaller one underneath showing a question.

I have also two actors called NEXT and PREVIOUS.

I can get the main actor/window (SENTENCE) to show the main text from my table called STORY

My table is set up as the following

Table called STORY

Row/Column (1,1) - has the first sentence in the story
Row/Column (1,2) - has the first question

My question.

How do I set it up so the NEXT button goes to the table (STORY) and displays the next part of the story in the main window which would be at Row/Column (2,1) and how can I get it to show automatically the second question in the window/actor below (QUESTION)

2: Can you link a cell, in my case 1,2 to the first cell (1,1) so for example when it shows say SENTENCE 3 (Cell 3,1) it will automatically show in QUESTION the linked question in cell (3,2)

Any help would be appreciated.

Thanks in advance

It takes a Zombie to know a Zombie!!!

Comments

  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273
    Hey man,

    I think your questions can be answered in our Tables video tutorials: http://gshelper.com/product-category/free-templates-and-tutorials/working-with-tables/

    Hope these help!
  • ZombiebrainsZombiebrains www.zombiebrains.co.ukMember, PRO Posts: 296
    Hey man,

    I think your questions can be answered in our Tables video tutorials: http://gshelper.com/product-category/free-templates-and-tutorials/working-with-tables/

    Hope these help!
    Hi mate

    Cool, will take a look :)

    It takes a Zombie to know a Zombie!!!

  • ZombiebrainsZombiebrains www.zombiebrains.co.ukMember, PRO Posts: 296
    Hey man,

    I think your questions can be answered in our Tables video tutorials: http://gshelper.com/product-category/free-templates-and-tutorials/working-with-tables/

    Hope these help!
    Hi mate

    Cool, will take a look :)

    I've checked out a few of those videos but still stuck on how to call up the next value on a table if i use my NEXT button.

    Want to so that it shows the SENTENCE 1 and then when I press my NEXT actor, the main text window will show the next sentence, that would be in 1,2. Is there a way of doing it so that if I press my NEXT actor it goes to the next SENTENCE automatically and show that new SENTENCE, along with showing the linked QUESTION in the window below>?

    It takes a Zombie to know a Zombie!!!

  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273
    Let me make you a quick demo. Hopefully I understand what you're trying to accomplish.

    Back in a min!
  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273
    edited January 2014
    ...Alright, back! Hopefully this is what you want. Go into the first actor and read the note, then the second.

    Best
    Braydon
  • ZombiebrainsZombiebrains www.zombiebrains.co.ukMember, PRO Posts: 296
    ...Alright, back! Hopefully this is what you want. Go into the first actor and read the note, then the second.

    Best
    Braydon
    Hi Braydon,

    That's exactly what I was looking for! cheer man!

    I can use that and work out the second Bit i think

    I need the QUESTION bit to auto display in the second window from the sentence in the big window.

    It takes a Zombie to know a Zombie!!!

  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    Tables are merely rows and columns. If you put things in order you can set up any behavior that has an expression to read that row or colum, by making a game level integer and changing the number and using that number in any table expression it will change the row or colum based on that number.

  • FrantoFranto Member Posts: 779
    edited January 2014
    I too have some problems wrapping my mind around the nature of tables. Basically, my predicament is: What can tables do that attributes and booleans cannot? In what situations would tables be advantageous?

    Edit: Nevermind, the video gave me an idea of what tables do.
  • slowcutslowcut Member, PRO Posts: 164
    @Franto table can do the same things as attributes, but they are much easier to handle. I use tables as often as I can, only in some specific cases I use attributes.
    If you want to save values permanently, tables are the deal, instead of using lots of load and save behaviors with different keys, you can only use on save table behavior and all your changes will be saved to the device.
    You can easily change lots of attributes of your actors, if they refer to a tablecell without opening each actor step by step and change everything by hand.
    There are so much advantages of using tables, that I would strongly recommend everybody to get familiar with using tables to produce sophisticated code in GS
  • FrantoFranto Member Posts: 779
    edited January 2014
    @slowcut I wish I knew that before I started working on the game, lol. I wonder if I should start from scratch or keep working but make tables for all future stuff.

    I should learn more before I dive into tables so I can use them efficiently.

    @FryingBaconStudios Thanks for posting the vid, very informative.
  • ZombiebrainsZombiebrains www.zombiebrains.co.ukMember, PRO Posts: 296
    edited May 2014

    Getting to grips now with tables as my latest app is all table related...@braydon_sfx is right

    Preserver as it's worth it...tables are very powerful indeed!

    It takes a Zombie to know a Zombie!!!

Sign In or Register to comment.