Game Development Reference
In-Depth Information
Figure 8-20. The instructions screen from ZDAY Survival Simulator
native.showWebPopup(" http://howto.oz-apps.com " )
And to remove it from the screen, use the following:
native.cancelWebPopup()
Nothing Lasts Forever
In your game, you might want to give the player some special abilities or powers that are temporary
in nature, or you might want to display a bonus item on the screen for the player to get within a small
window of time (like the fruit bonus in Pac-Man). If the player does not get this object within the
allotted time, then the object is removed from the screen.
print("displaying the special object for 3 seconds")
timer.performWithDelay(3000,
function()
print("The object has now been removed")
end)
 
Search WWH ::




Custom Search