How does it work.?
If the players complete the first level, I show a reward.
and will appear a kiip pop up.
is it possible to show the pop up without the button "show me a reward?
[lua]
– Button to save a moment
local saveMomentButton = widget.newButton
{
defaultFile = “images/button.png”,
overFile = “images/button_on.png”,
fontSize = 15,
width = 150,
height = 40,
labelColor =
{
default = { 1 },
over = { 1 },
},
label = “Show me a reward!”,
onRelease = function( event )
– Save a kiip moment
kiip.saveMoment
{
momentName = “A Super Prize!”,
value = 5,
listener = function( event )
– Print the event table items
for k, v in pairs( event ) do
print( k, “:”, v )
end
end,
}
end
}
saveMomentButton.x = display.contentCenterX
saveMomentButton.y = display.contentCenterY
[/lua]