Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Timed text and Conditional display?

A topic by manonamora created Jun 15, 2025 Views: 233 Replies: 2
Viewing posts 1 to 3
(+2)

Hi, 

I was wondering if it was possible to display blocks of text/buttons after a timer runs out?
Like, the player 4 seconds on a the card, and then a block of text appears.

Also, is there a way to only display a block/button if the player has visited a specific card? or disable a button if the player visited the card linked to it?

Thanks!

(+3)

Many things are possible, if you are not afraid of getting your hands dirty with a bit of coding!

For a timer, a good starting point would be this post from ahmwma in the programming questions thread! You'd just want to set e.g. field1.show:"solid" to happen when the timer hits.

For the second question, you can similarly change the visibility or enable/disable a button by using like button1.show:"none" or button1.locked:1 or whatever you need. If you put it in the "on view" event of the card then it'll run when that card is viewed. Although if it's a button on a different card you'll need to refer to it with the card name as well, like card1.widgets.button1.show:"none" for example.

If you're not sure of the different attributes you can set on fields or buttons, it could be worth a look at the Decker Reference Manual.

Hope this makes sense! But if anything doesn't please let me know!

(+2)

Ah yessss perfect! Thanks a bunch!!