Hi people
I am trying to learn some about it, i am seeing the tilt monsters code, to learn about this part.
i am trying to create something that i can stop the music on options_screen, and the music dont play on any part of the game and when i am playing, i can pause the game and active again the sound, and the sound will be active for all the screens of the game, other example is, on options_screen i choose the character, and it will appear on the game, the character that i choose.
On tilt monsters he used some like it
local saveChanges = function()
Runtime:removeEventListener( "touch", muteUnmute )
if settingsChanged == true then
saveValue( "char.data", charSelection )
saveValue( "theme.data", themeSelection )
saveValue( "tilt.data", tiltSelection )
saveValue( "music.data", musicData )
saveValue( "sound.data", soundsData )
saveValue( "difficulty.data", diffSelection )
end
end
it is a function that will save the values, but i dont know the other part, that is with the if statements etc, and i dont know where i can learn about it, anyone know some place where i can learn about it? or what type of name i should put on the google? [import]uid: 26056 topic_id: 18836 reply_id: 318836[/import]
[import]uid: 26056 topic_id: 18836 reply_id: 72515[/import]