Hi,
can someone tell me how to properly add scores inside of an enterFrame function?
like:
[lua]local function foo()
if var == 1 then
scorevar = scorevar + 100
end
end
Runtime:addEventListener(“enterFrame”, foo)[/lua]
But it adds scores way too much times and i only need once
is there a proper way to do this kind of thing?
any help is appreciated of course) [import]uid: 16142 topic_id: 18356 reply_id: 318356[/import]
[import]uid: 103624 topic_id: 18356 reply_id: 70376[/import]