• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Our weekly protagonist poll is now up! Vote for your favorite Trading Card Game 2 protagonist in the poll by clicking here.
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

[Custom Feature Question] Timer

  • 13
    Posts
    4
    Years
    • he / him
    • Seen Oct 4, 2023
    Anyone knows how to hide timer while it working?
    I'd like to make system which when timer stop and player is champion, random trainer challenge him to battle, but I'd like to hide timer.
     
    Anyone knows how to hide timer while it working?
    I'd like to make system which when timer stop and player is champion, random trainer challenge him to battle, but I'd like to hide timer.

    This is definitely possible. I would recommend making a switch for this, though if all the timers in your game are invisible, then you don't really need one. If you go to Sprite_Timer, find "@timer.update", and paste "@timer.visible=false if $game_switches[xxx]" underneath, where xxx is the number of the switch, when turned on, that will disable visibility for the timer. However, using this method, you won't be able to display any visible timers while this switch is on, so if you wanted to use a different visible timer in the postgame, you'd have to disable this switch and probably the other timer as well.
     
    It's working, but when I turned switch back OFF timer still hide. Do you know how to fix that?
     
    You can replace the line I told you to put in with this: "@timer.visible = !$game_switches[xxx]" and it should work
     
    You can replace the line I told you to put in with this: "@timer.visible = !$game_switches[xxx]" and it should work
    I tried to do it same as you wrote, but it still doesn't work. I also tried in other similar ways.
     
    It worked for me. In the video, interacting with the tree starts the timer, interacting with Teddiursa turns the switch on, and interacting with Zangoose turns the switch off. Are you sure you did it correctly?
     

    Attachments

    • Pokemon Vengeance 2020-07-14 13-06-27_Trim.mp4
      1 MB
    Back
    Top