Hi!
Tell them the problem I have now.
I have a native.showAlert opens in a function, So far so good. The problem comes when I try to call the function to change changeScene scene.
The problem is that no change of scene. Why can it be?
I expose the code:
local function fin1 ( event )
if count \<1 then
print("has perdido por la bola 1")
local alert = native.showAlert( "Game Over", "Has perdido!",
{ "OK"})
reintentar = true
local function changeScene()
if reintentar == true then
director:changeScene ("main2")
end
end
end
end
PD: I have set in the beginning of code a variable called “reintentar” which default value is false. The idea is that if this is true Make the change of scene.
Thank you very much for your help! [import]uid: 98258 topic_id: 32012 reply_id: 332012[/import]