I have localstorage key name as = 1
and i need to set value of key "1" to
sprite.animationframe 1
like
local storage key (1) = Sprite.animationframe (1) > sprite destroy
Develop games in your browser. Powerful, performant & highly capable.
You can get the localstorage item then say if sprite.animationframe = localstorage.itemvalue
i want to compare key name not a value bro
Then localstorage.key
number parameter dose not get, so i put "" & sprite.animationframe
but not getting succes
You need to use the sprite object in the sub event and then compare sprite.animationframe = localstorage.key then apply the action sprite destroy
hehe i try all things
sub event and
compare two values
thru instance variable
ah...