by plinydogg » Fri Jan 06, 2006 6:33 pm
I guess I do need to worry about it since I get access violations whenever that code executes.
To make a long story short, here's what I'm trying to do:
(1) When game starts, load global high score variables (name, level, and score) using LoadVars (this part works fine);
(2) If the player has a score greater than the lowest high score, the view moves to a screen that allows the person to input his/her name (this part also works fine);
(3) When the person clicks on the word "Enter," scores are reassigned (e.g., if player's score > 5th high score but < than 4th high score, player's score is assigned to the global highScoreFive variable, etc.);
(4) Finally, the altered high scores should be assigned to the actors that display them. I initially tried using something like
highScore01Name.textNumber = Score01Name;
That didn't work.
Then I tried
strcpy(highScore01Name.text, Score01Name);
which created the access violations.
Does anyone have any advice?
Thanks again!