Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Death

A topic by Artem Flo / aturbidflow / kubikámi created Feb 10, 2020 Views: 109 Replies: 5
Viewing posts 1 to 2
Submitted (3 edits)

I want to implement situations where player can die. With rollback option, of course. But theme changes through the game and the question is how to change theme after "end_game" and rollback? Ideally I want to catch a rollback moment.

Host

Does changing the theme prior to end game not work?

Submitted

Let me explain more detailed. Before the game end I'm changing the theme to the "noheader" theme and in the "win" situation everything okay. Then I change the theme before the "game over" message everything is okay too. But when player answers "yes" to the rollback question, theme remains "noheader". And I want to return the header when player returns to the game.

Host (1 edit)

Hi, I just confirmed this is a bug and a fix will be in beta 23.

start_at = my_location
game_settings {
   rewind_enabled                = true
   rollback_enabled              = true
   imply_header_from_location_id = true
}
themes {
   my_theme : theme {
      extends = two
   }
   my_theme_2 : theme {
      extends = my_theme
      theme_settings {
         layout = H D X O
      }
      colors {
         paper  = 1
      }
   }
}
locations {
   my_location : location "TYPE ENDGAME" ;
}
on_command {
   : match "endgame _"  {
      : set_theme "my_theme_2" ;
      : print "You die!" ;
      : lose_game;
   }
}
Submitted

Thanks, will give it a try today.

Submitted

Amazing fix, solved many problems. Thanks a lot.