@Jon- thanks for the reply, but i got it sorted out by moving the whole local function into the create scene function, which i don’t see a problem with (this remains to be seen in the long run). I also added a part where if it was false it would display a different color rect, so it seems to work alright. Now i have to add in my ICE code :wacko:…
icero,
The code changes I noted earlier would and do work. I noticed in the code you listed in your response to my suggestion, that you just had 2 things mis-typed from what I had noted. Those 2 things made it fail.
Line 5 :
local function onsfxSwitchRelease() – won’t work
local function onsfxSwitchRelease( event ) – works … must have ‘event’ inside the ’ ( ) ’
Line 33 :
onPress = onsfxSwitchRelease(), – won’t work
onPress = onsfxSwitchRelease, – works … remove the ’ ( ) ’ , cannot have them there
So,
when you call the onPress, do not use ’ ( ) ', just the name of the function ‘onsfxSwitchRelease’
when you are going to use ‘event’ inside the function, be sure it is in the ’ ( ) ’
I hope you get it all running smooth!
oh, i see what you were saying now, i pretty much did that same thing you suggested, but put it in the main create function to get it to work
I got ICE up and running, and it is saving the settings alright, and reading them for now. I only have one more major problem with my game at this point and that is users can drag their finger off a button widget if the accidentally click on it and it won’t register a onRelease event(which it is critical it does). You guys have any idea on how to fix that???