My aim is to insert a real time clock (a clock that displays what time is it in real life in that moment) that keeps having track even when the game is not opened (in order to program daily events, p ej: show "x" text every two days). Is that possible?
Develop games in your browser. Powerful, performant & highly capable.
You can get the time and date by inserting the Browser object in your project and using this expression: Browser.ExecJS("Date()") to return a string with the current date and time. The result looks like this:
Sat Jan 28 2017 13:46:00 GMT+0100
I don't exacly know how you could get the game running in the background. Although there is a Background mode plugin in the scirra store that I think serves this purpose.
I hope this solves your problem!