Attribute help (please respond quickly) :(
boredaholic
Member Posts: 47
So i have 2 high scores in my game "Reflex Tapper" but one high score doesn't save atm. It's been released so i'm working frantically on fixing the bug and releasing an update for it.
Game has 2 modes henceforth the 2 high scores.
Mode 1: Challenge mode.
Mode 2: 90 Second mode.
However here's my issue... i have it to where it loads now except for it loads the challenge mode and displays that instead of the 90 second mode.
The save attribute for the high scores is this:
(this is for the "if score is greater or equal to")
for mode 1 - change attribute "game.high score" to "game.score"
for mode 2 - change attribute "game.highscore90second" to "game.90secondscore"
then at the end scenes with the high scores showing to tell the user what they got here's the save attributes:
for mode 1 - save attribute "game.highscoresave" to "game.high score"
for mode 2 - save attribute "game.highscore90secondsave" to "game.highscore90second"
the load screen on the game is where the attributes are loaded and here's the code for that:
for mode 1 - load attribute "game.highscoresave" to "game.high score"
for mode 2 - load attribute "game.highscore90secondsave" to "game.highscore90second"
Everytime it loads though it shows mode 1's score for both...
the code on the displaying high score in the main menu is this:
mode 1 high score - display text "game.high score"
mode 2 high score - display text "game.highscore90second"
What am i doing wrong?! it's giving me a huge headache and i've tried changing the attributes to something different... both sequences are exactly the same so i just dont understand what's going on.
Help would be greatly appreciated...
Game has 2 modes henceforth the 2 high scores.
Mode 1: Challenge mode.
Mode 2: 90 Second mode.
However here's my issue... i have it to where it loads now except for it loads the challenge mode and displays that instead of the 90 second mode.
The save attribute for the high scores is this:
(this is for the "if score is greater or equal to")
for mode 1 - change attribute "game.high score" to "game.score"
for mode 2 - change attribute "game.highscore90second" to "game.90secondscore"
then at the end scenes with the high scores showing to tell the user what they got here's the save attributes:
for mode 1 - save attribute "game.highscoresave" to "game.high score"
for mode 2 - save attribute "game.highscore90secondsave" to "game.highscore90second"
the load screen on the game is where the attributes are loaded and here's the code for that:
for mode 1 - load attribute "game.highscoresave" to "game.high score"
for mode 2 - load attribute "game.highscore90secondsave" to "game.highscore90second"
Everytime it loads though it shows mode 1's score for both...
the code on the displaying high score in the main menu is this:
mode 1 high score - display text "game.high score"
mode 2 high score - display text "game.highscore90second"
What am i doing wrong?! it's giving me a huge headache and i've tried changing the attributes to something different... both sequences are exactly the same so i just dont understand what's going on.
Help would be greatly appreciated...
Comments
You can also post actual screenshots. There may be something you're not seeing because you've looked at it a million times that we can spot.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
save attribute - save "game.highscore90second" as "highscore90second"
load attribute - from "high score" load "game.high score"
load attribute - from "highscore90second" to "game.highscore90second"
Does this fix it?
http://i46.tinypic.com/333h7qr.png
http://i50.tinypic.com/1jx0s1.png
http://i48.tinypic.com/20qzvpg.png
1. There aren't any rules for the save attributes... probably not a problem but just wondering if you need a condition for those behaviors.
2. Why do you load the attributes at the End Menu?
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
"end menu" is the name of the background. i just copied it and redid the coding.
Unfortunately, this is a tough one to solve! If you want to send me a link to the profile file in a private message, I can take a look, but I understand if you're not comfortable doing so.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User