English 中文(简体)
了解故事板在另一物体重叠时的情况
原标题:Know when a storyboard overlaps another object

我正试图利用头巾(窗户电话7)。

I have a thread that randoms create storyboards which moves from the top to the bottom of the phone. Thats the "computer", now i have the "player" , and i want to know when one of the storyboards overlaps the player or come very close.

Is there a way to control the storyboard and know when the "computer" and the "player" overlaps? Like listening to an event that triggers everytime the storyboard changes position and then check if storyboard.pos == player.pos ?

谢谢!

最佳回答

你们可以使用构成指标。 招标活动向每个框架开火,以检查结果,或视窗7.1, 您可创建“游戏时间”(需要提及微软)。 页: 1 一般来说,如果你在游戏中重新进行碰撞探测,那么就更容易不使用故事片,而是使用上述一种技术进行自己的程序分析,那么你就确切知道该要素在任何特定时间。

问题回答

暂无回答




相关问题
Manually implementing high performance algorithms in .NET

As a learning experience I recently tried implementing Quicksort with 3 way partitioning in C#. Apart from needing to add an extra range check on the left/right variables before the recursive call, ...

Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How do I compare two decimals to 10 decimal places?

I m using decimal type (.net), and I want to see if two numbers are equal. But I only want to be accurate to 10 decimal places. For example take these three numbers. I want them all to be equal. 0....

Exception practices when creating a SynchronizationContext?

I m creating an STA version of the SynchronizationContext for use in Windows Workflow 4.0. I m wondering what to do about exceptions when Post-ing callbacks. The SynchronizationContext can be used ...

Show running instance in single instance application

I am building an application with C#. I managed to turn this into a single instance application by checking if the same process is already running. Process[] pname = Process.GetProcessesByName("...

How to combine DataTrigger and EventTrigger?

NOTE I have asked the related question (with an accepted answer): How to combine DataTrigger and Trigger? I think I need to combine an EventTrigger and a DataTrigger to achieve what I m after: when ...

热门标签