im using storyboard and so far so good, question,
is it possible to add functions to a group, so that upon changing a scene all my functions can be removed as well…how would that look in code if this is my function
function allDots()
for i=1,#myTable do
dots[i] = display.newImage(myTable[i],math.random(30,x-100),math.random(30,y-100))
dots[i].id=i;
dots[i]:addEventListener(“touch”,Circle);
end
lately ive been putting all my function outside the storyboard scenes functions eg… createscene, enterscene etc, because when i run my game it wont run if they are in the function so, it seems to me like you cant put functions inside the storyboard scene functions… is that right?
thanks