J julesv macrumors newbie Original poster Apr 1, 2009 #1 I have a simple game based on Image views. The difficulty of the game is relative to this constant defined at the beginning of the M file as such: #define Difficulty 13 I would like to change this value using a slider, but I am failing. Please help!
I have a simple game based on Image views. The difficulty of the game is relative to this constant defined at the beginning of the M file as such: #define Difficulty 13 I would like to change this value using a slider, but I am failing. Please help!
J julesv macrumors newbie Original poster Apr 1, 2009 #3 I don't know... I'm very new so just tell me what's up in the program that is wrong. I guess I nave to learn via my mistakes. I thought that was a constant....
I don't know... I'm very new so just tell me what's up in the program that is wrong. I guess I nave to learn via my mistakes. I thought that was a constant....
J jnic macrumors 6502a Apr 1, 2009 #4 Constants, by definition, can't be changed. You want a variable. Try: Code: int difficulty = 13; You probably want to re-read the basics of Objective-C before continuing.
Constants, by definition, can't be changed. You want a variable. Try: Code: int difficulty = 13; You probably want to re-read the basics of Objective-C before continuing.