<legend id='npWRz'><style id='npWRz'><dir id='npWRz'><q id='npWRz'></q></dir></style></legend>

    <tfoot id='npWRz'></tfoot>
  1. <i id='npWRz'><tr id='npWRz'><dt id='npWRz'><q id='npWRz'><span id='npWRz'><b id='npWRz'><form id='npWRz'><ins id='npWRz'></ins><ul id='npWRz'></ul><sub id='npWRz'></sub></form><legend id='npWRz'></legend><bdo id='npWRz'><pre id='npWRz'><center id='npWRz'></center></pre></bdo></b><th id='npWRz'></th></span></q></dt></tr></i><div id='npWRz'><tfoot id='npWRz'></tfoot><dl id='npWRz'><fieldset id='npWRz'></fieldset></dl></div>

      • <bdo id='npWRz'></bdo><ul id='npWRz'></ul>

      <small id='npWRz'></small><noframes id='npWRz'>

    1. 我怎么能每秒都做某事?[LibGDX]

      时间:2023-05-20

        <small id='aSpCX'></small><noframes id='aSpCX'>

              • <bdo id='aSpCX'></bdo><ul id='aSpCX'></ul>
                  <tbody id='aSpCX'></tbody>

              • <i id='aSpCX'><tr id='aSpCX'><dt id='aSpCX'><q id='aSpCX'><span id='aSpCX'><b id='aSpCX'><form id='aSpCX'><ins id='aSpCX'></ins><ul id='aSpCX'></ul><sub id='aSpCX'></sub></form><legend id='aSpCX'></legend><bdo id='aSpCX'><pre id='aSpCX'><center id='aSpCX'></center></pre></bdo></b><th id='aSpCX'></th></span></q></dt></tr></i><div id='aSpCX'><tfoot id='aSpCX'></tfoot><dl id='aSpCX'><fieldset id='aSpCX'></fieldset></dl></div>
              • <legend id='aSpCX'><style id='aSpCX'><dir id='aSpCX'><q id='aSpCX'></q></dir></style></legend>
                <tfoot id='aSpCX'></tfoot>
              • 本文介绍了我怎么能每秒都做某事?[LibGDX]的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                问题描述

                限时送ChatGPT账号..

                假设我想制作一个循环或打印出来的东西,例如每秒打印一次Mario".我怎样才能做到这一点?似乎在任何地方都找不到任何好的教程来教这个=P

                Lets say I want to make a loop or something that prints out, for example, "Mario" every second. How can I do this? Can't seem to find any good tutorials that teach this anywhere =P

                推荐答案

                可以使用java.util.Timer.

                You can use java.util.Timer.

                new Timer().scheduleAtFixedRate(task, after, interval);
                

                task 是您要执行的方法,after 是距离第一次执行的时间量,interval 是上述任务执行之间的时间.

                task is the method you want to execute, after is the amount of time till the first execution and interval is the time between executions of aforementioned task.

                这篇关于我怎么能每秒都做某事?[LibGDX]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                上一篇:如何在 Libgdx 中调整精灵的大小? 下一篇:如何在 Libgdx 中跟踪多个触摸事件?

                相关文章

                最新文章

                <small id='7FoH3'></small><noframes id='7FoH3'>

                  <tfoot id='7FoH3'></tfoot>
                  <legend id='7FoH3'><style id='7FoH3'><dir id='7FoH3'><q id='7FoH3'></q></dir></style></legend>

                1. <i id='7FoH3'><tr id='7FoH3'><dt id='7FoH3'><q id='7FoH3'><span id='7FoH3'><b id='7FoH3'><form id='7FoH3'><ins id='7FoH3'></ins><ul id='7FoH3'></ul><sub id='7FoH3'></sub></form><legend id='7FoH3'></legend><bdo id='7FoH3'><pre id='7FoH3'><center id='7FoH3'></center></pre></bdo></b><th id='7FoH3'></th></span></q></dt></tr></i><div id='7FoH3'><tfoot id='7FoH3'></tfoot><dl id='7FoH3'><fieldset id='7FoH3'></fieldset></dl></div>
                  • <bdo id='7FoH3'></bdo><ul id='7FoH3'></ul>