What do tables do?
SLOCM3Z
Member Posts: 797
Saw tables up in the corner and wanted to know what they do with their columns and rows.
Comments
You can think of each row and column as an attribute, because that's what they are. Tables are extremely poweful. They can be searched, organized and more. I use tables in almost each project. You can look up video tutorials on gshelper.com.
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx
They are generally used to store large amounts of data in an orginized manner. This is great for save systems, positioning systems, and more. It lets you put and remove values in to rows and columns both in real time or before hand, or make copies/delete information.
Do a search for gamesalad tables, i'm sure some videos exist that can give you a nice idea of how to use them within the engine.
Follow us: Twitter - Website
So it's good for adding coins or changing certain attributes?
It depends. I'd say yes, just because I like working with tables more than I like working with game attributes.
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx
This should help. Tables are static variables.
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
Could you explain how YOU use them? I would try to make my ammo reduce or health go down. Is that how you would use them?
Watch the video I posted on tables above.
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
Just as an example:
I use them for save systems in every project. So any variable needing to be written to disk gets put in a table.
Lets say col 1 is weapons, and is of the variable type boolean and i have 16 weapons in my game, so 16 rows.
We then have col 1 row 1 = weapon type 1, col 1, row 2 = weapon type 2, etc, etc. Rather then make 16 booleans attributes to determine if the weapons has been awarded, I can see them all in one table.
If I want to save the table I just use the save table behavior and now it's written it to disk in one go.
Follow us: Twitter - Website
THANKYOU!!!
Tables are just static variables that are outside the normal code scan. It's that simple. You access that data by addressing the column and row of the table instead of game.whatever.
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
The tables are awsome Thanks a bunch