Trivia Quiz Game

KaiWenKaiWen Member, PRO Posts: 93
edited July 2012 in Working with GS (Mac)
How can I redirect to another scene or image after getting 3 wrong answers in this template? I am having a tough time trying to figure out the code for when the user gets the third wrong answer. I want to add a screen for posting the game players score to the gamecenter.

Best Answers

  • EinsteinAppsEinsteinApps Posts: 81
    Accepted Answer
    Hmmm, I am guessing you mean the TSB template? I did this by simply adding a line to the 3 lives code. If you look at what triggers the restart game with 3 more lives, you just change that to change scene if lives = 0. Then you can add a restart game to the new scene, but that's going to be a lot of loading screens. Why don't you just add a gamecenter button on the Trivia screen that take the player to a new screen were the high score is saved and buttons are present for posting scores, logging in, and viewing leaderboards? This is how I did it, and it works pretty seamless.
  • EinsteinAppsEinsteinApps Posts: 81
    Accepted Answer
    @Kaiwen I set mine up like TSB's tiny balls menu screen. When you press his "?" it moves the screen to the right one full screen by moving the camera with interpolate and the rules are there. I used this logic and just put a GC button instead of a ? and then put all the GC buttons on this part of the screen since it requires no loading.

Answers

  • KaiWenKaiWen Member, PRO Posts: 93
    Hi @EinsteinApps, yes I'm using the tshirtbooth template for this game. Thanks for your reply and the information. I might try to do it the way you suggest. I'm new to the GameSalad development world so the I'm still learning. Yes, I could try and place something on the trivia screen that takes the user to another screen where they can post their scores. I'll let you know how it goes.
  • deadlightsdeadlights Member, PRO Posts: 235
    Those of you using the TSB tempate - Does anyone know how to change the template so it doesn't repeat questions? I've tried to remove row, etc, but I can't get it working #-o
  • KaiWenKaiWen Member, PRO Posts: 93
    @EinsteinApps I know exactly what you are talking about. That is a GREAT suggestion. I am using the Argo Bird template in another game I'm working on (doing to at the same time) and that functionality is being used in that template. I'm going to do it that way. THANKS so much for the help.

    By the way, do you have any apps in the Apple Store yet? If so which ones?
  • KaiWenKaiWen Member, PRO Posts: 93
    @deadlights their is suppose to be logic in the template that is suppose to randomly pick the questions. In my quiz game I have around 102 questions so far. When I run it sometimes I see that the same questions might appear during game play. I haven't looked into that issue yet. I was focused on some other stuff like getting a screen the users can use to post their score and getting my questions and answers entered into the table. How many questions do you have in your quiz? Maybe @tshirtbooth can chime in on this issue. If I could write some c# code I could write a function to fix this, but I'm to new to GameSalad programming.
  • deadlightsdeadlights Member, PRO Posts: 235
    edited July 2012
    @KaiWen Thanks for your response. I have 75 questions right now, and sometimes the same question pops up 3 or 4 times in a row. Hopefully TSB can provide some insight :)
  • KaiWenKaiWen Member, PRO Posts: 93
    @deadlights Hey man no problem. I can think of the logic needed to resolve this kind of issue, but I'm not sure how to code it in GameSalad.

    Off the top of my head would be something like a temp table to write a question identifier after it has been asked once then some logic to compare the new question to the question(s) in the temp table to see if their is a match before showing the question to the user. In .net I could do this a few different was really simple, but I'm a newbe in GS.
  • KaiWenKaiWen Member, PRO Posts: 93
    Hey @tshirtbooth. Thanks for the info. I was wondering if there was some type of copy or duplicate table function in GS.

    Quote:
    "BUT if you do this you now ned to make a master version of your table so you cant copy it the used table each time you want to start over."

    I think you mean "so you can copy it" right?
  • KaiWenKaiWen Member, PRO Posts: 93
    @tshirtbooth I don't understand a issue I'm having with the table copy behavior. I have a table called "TB Questions" and "MasterTable" They both had 109 rows. I removed 1 row from the "Tb Question" table. On my actor that I have to click to start the game I have the following

    When Actor Receives Touch is Pressed
    Copy Table
    Copy: MasterTable
    To: TB Questions

    I run the game. Click the actor to start and when I look at the " TB Questions" table, I still have only 108 rows. Shouldn't I have 109 rows?
Sign In or Register to comment.