English 中文(简体)
通过菜单方案控制全球倡议周期的速度太快
原标题:Thumbstick control of GUI cycles through menu options too fast

我正在努力开发菜单系统,以便我进行非常简单的ong子测试,并给th子带来一些麻烦。 几个实例 我已经看到,在菜单屏幕上推出和缩小选择的守则只是:

if (controller.Thumbsticks.Left.Y > 0.5f) MenuUp();

虽然从理论上讲,这一检验是每个框架(见Update(> calls,表面上)进行的,检查控制器状态的时间大约为60倍。 由于平均用户将至少排位第二季度,结果是几乎瞬时把控制器的tick周期推向整个菜单。

我可能实施某种复杂的时间制度,其中检查了自上一次菜单项目改变以来的多长时间,以及th子被打上了多长时间,但我在网络上发现没有任何样本使用这种复杂的时间制度。 我失踪了吗?

<><>Edit>: 安德鲁在下文的评论中询问,与我发现的这些理论的联系:

  • This one uses if (controller.isButtonPressed(Buttons.LeftThumbstickUp)) but it is the same idea.
    http://create.msdn.com/en-US/education/catalog/sample/game_state_management
  • I realize this one is XNA 2.0 (I m working with 4.0) but the principle remains
    http://www.sgtconker.com/2010/08/nick-gravelyns-alien-aggressors-tutorial/
  • Also, Chad Carter s "Microsoft XNA Game Studio 3.0 Unleashed" book, on page 530, shows similar code. His system checks the previous gamepad state, so his system won t scroll instantly through several options, but it also doesn t let you scroll at all - each time you want to move up a menu option, you have to move the thumbstick back to center and push it back up again. I am looking for behavior more like when you press and hold a key on your keyboard: one letter appears, a slight delay, and then starts repeating the letter at a measured pace.
最佳回答

你们把展示这种技术的若干成功的辅导联系起来。 这里的问题究竟是什么? 基本前提就是你说的,如果你只是检查/清除每个框架,结果就会对使用者不理解。

最简单的选择是保持控制器的“前状态”。 如果在最后一行“倒塌”已经受到压力,那么你就会从改变菜单上调<>refrain>。 因此,只有一次处理一个用户的下级行动。

问题回答

暂无回答




相关问题
How to start to create an application GUI using C#?

HI! I am new to C# and plan to use it for my application GUI. I am trying to make my GUI similar to SPSS:http://www.spss.com/images/08/statistics_screens/ez_rfm-big.jpg Is this easy in C#? Is there ...

Automatic height of edit box

My shoes application has three items stacked on top of each other (with a stack, of course), in order: A banner An edit box Two buttons in a flow What I want to do is have the banner stay at it s ...

Search by using the keyboard in a list/grid - algorithm

I need to implement a custom search in a grid and I would like to find some user interface guidelines that explain the standard way to implement it. I mean this kind of search that is initiated by ...

UI And TcpClient Issue in vb.net

I m having some problems with a small ircbot i m writing. Basically I connect to the server using a tcpclient in a seperate class, which also runs on its own thread. I want to display the server text ...

UI Convention: Shortcut key for application exit? [closed]

Is there a convention for the shortcut keys for application exit? Some applications uses Alt+X some others use Ctrl+ X and Ctrl+Q. Applications like FF and IE doesnot assign a shortcut at all. So is ...

热门标签