Trivia Quiz Game
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
-
EinsteinApps Posts: 81
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. -
EinsteinApps Posts: 81
@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
By the way, do you have any apps in the Apple Store yet? If so which ones?
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.
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?
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?