Tables,User Input, and Math

Has anyone made a app or created a template...( if this is possible ) that can allow a user to input data and get a sum?

Example:
User Mile Average
Day 1-- 5.6 Miles
Day 2-- 5.9 Miles
Day 3-- 6.4 Miles
Day 4-- 6.5 Miles
Day 5-- 6.6 Miles

Mile average = 6.2

The user can write to the table and a cell or actor be formulated to get the avg and display it?

Save?
Reset?

All this using Tables? If so is there a video or template or demo?

Comments

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    It's pretty easy to do this but I would suggest using buttons to allow the user to increase the values rather than a keyboard input field.

    Tables can support very sophisticated math, on par with almost anything Excel can do. If you need further help, there are videos (google gamesalad tables) or you can post more specific questions here.

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

  • CaptFinnCaptFinn Member Posts: 1,828
    I plan on using a button to increase or decrease values. I would like a template or demo. On how to set this up. I haven't dealt with tables much. I learn and understand faster if I break down a template or demo. Then work my way back. If any one has something like that. It would be greatly appreciated.
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    I can make you one later. But I suggest watching some videos first if you haven't worked with tables much. @FryingBaconStudios has a good one but I don't have the link handy.

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

  • CaptFinnCaptFinn Member Posts: 1,828
    Yeah I've watched some videos. But if the video isn't talking exactly about what I have in my head. It's hard to understand. I've played with a tables based trivia demo. Understand it pretty well. But that has nothing to do with what to do in the editor with math and how to set the table up. But thanks for any time you can spare. Much appreciated.
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    Here's a demo. It's far from complete but I think it will get you started. The interface is pretty basic. In a real app, users will want to be able to change the distance in more than tenth of a mile increments. I would probably have +/- buttons for whole miles and separate buttons for tenths.

    Also, it's based on a table with 5 rows for 5 days. To make this a useable system, you'd need to display and calculate table data (i.e. average) using a loop that iterates through the table rows. That functionality exists in the current nightly build ("Loop over table") but I used the current stable build for the demo so I didn't include any kind of loop. It's certainly possible to create a loop using the stable build but it's a bit more work.

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

Sign In or Register to comment.