Attribute help (please respond quickly) :(

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...

Comments

  • 921creative921creative Member, PRO Posts: 140
    Is it getting confused because you have a space between high and score? Try something like game.HighScore and game.HighScoreNinety. Also I tend not to use digits in the names of my attributes. Not sure why but I think I've heard of issues there.
  • boredaholicboredaholic Member Posts: 47
    ok i'll change those, thanks i'll post here again in a few minutes
  • boredaholicboredaholic Member Posts: 47
    edited December 2012
    didn't help :( ughhhhh....
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    Have you tried re-selecting all of the attributes in the expression editor? It may be that one or more of them looks correct but is just plain text rather than a known attribute.

    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

  • boredaholicboredaholic Member Posts: 47
    What screenshots would you like? The attribute area? all the score attributes are integers, just double checked.
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    The rules where you save and load attributes.

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

  • LooseMooseLooseMoose Member Posts: 224
    save attribute - save "game.high score" as "high score"
    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?
  • boredaholicboredaholic Member Posts: 47
    edited December 2012
    @Kyukon : negative ghost rider... it did the same thing and loaded "high score" as both. i put it as "highscore" instead of having the space but it still did the same thing :/ i'll see what i can do about posting screen shots here in a few minutes.

    http://i46.tinypic.com/333h7qr.png
    http://i50.tinypic.com/1jx0s1.png
    http://i48.tinypic.com/20qzvpg.png
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    A couple questions:

    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

  • boredaholicboredaholic Member Posts: 47
    edited December 2012
    load attribute is in the "loading"/first scene. what rule should i use?

    "end menu" is the name of the background. i just copied it and redid the coding.
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    Okay, sorry. It was confusing to see it labeled that way. I don't know that you need rules... I just wasn't sure what else was happening on that scene.

    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

  • boredaholicboredaholic Member Posts: 47
    considering the game is already out and i have the rights to the game i may do so. As for the coding though and actually sending you the profile... it might be a day or so. the bug fix isn't going to be out before christmas now anyways so i wont rush this anymore :/ i'm just irritated now.
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    @boredaholic, sure just let me know.

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

Sign In or Register to comment.