Whats better?

[img]http://i.imgur.com/IfzAjBD.jpg[/img]

-OR-

[img]http://i.imgur.com/tcmTC8r.jpg[/img]

In the first picture i was new to GameSalad and just played around with my small programming knowledge and got to work. Eventually I learned about tables and started messing around with them(sort of have the idea).

Basically in picture 1 I have a global variables for almost everything and its getting confusing - BUT so far its working as visioned to an extent.

Picture 1 has me constraining Char1Dmg to tableCellValue(warrior/mage/archer etc Table,Char1Level,1)
So depending on what class you are and what level the values change accordingly and it works.

After trying a new project I jumped right into Tables which is Picture 2 and it feels much cleaner.

I managed to make the images change accordingly and texts etc. However I ran into a problem for the damage.

*Since I couldn't find a way to constrain my Chart Damage value.

Unless you can't constrain directly to a table, Or I don't know how yet, However I did manage to do a work around being:

During level up click set Character Table value to Character Table value+1, which works great and auto updates for my "Level" text. Then I would have to check What Class is Char1, if Warrior, change Table value damage to table warrior damage+character table level spot. But I would have to do this for every class and it would get very repetitive, and I do plan on having probably 4 base classes with 2 upgrades classes(that's A LOT of If checks).

-----Summary-----

What method is the "proper" way(Pic 1 or 2), and if Picture 2 is more correct - how would I go about auto updating the damage value like Picture1.

Comments

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    What method is the "proper" way(Pic 1 or 2), and if Picture 2 is more correct - how would I go about auto updating the damage value like Picture1.

    It's not really possible to answer that for you. The pictures don't really mean much and you've described that you've transitioned from a bunch of game attributes (often unwieldy) to tables, which makes sense.

    Unless you can't constrain directly to a table

    Yes, you can constrain an attribute to a tableCellValue. How did you try to do this?

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • ImpervionImpervion Member Posts: 49

    By using the Constrain Function - the Left side doesn't show Functions - tableCellValue.

    [img]http://i.imgur.com/Pi4En59.png[/img]

    Project 2 is with Change Table Value, and would like to not do a check every time for the class and then change it(unless I have too), where Project 1 auto updates the damage according to characters level and class.

    Hope this clarifies.

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    I thought you were trying to constrain an attribute to a tableCellValue. In the PC version of GameSalad, you're a bit limited with rule conditions. The Mac version allows for tableCellValues on either side.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • ImpervionImpervion Member Posts: 49

    Dang, I guess I could make the damage the same way outside of the table... like Project 1. Or just continue with project 1. Thank you for your time!

Sign In or Register to comment.