我们如何在随机方向上创建一个移动的球? [英] How we can create a moving ball in random direction?
本文介绍了我们如何在随机方向上创建一个移动的球?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我尝试在水平方向上制作一个移动的球,并在样式的结尾处将其返回到其原始位置,
请告诉我一个代码.
I try to make a moving ball in horizontal direction and at the end of scallwith of the form it return back of its original position,
please tell me a code.
推荐答案
Google ..."DoMyHomeworkForMe.dll".它包含以下类,方法和事件:
移动球
StartMovementInDirection(MovingBall,Direction.Horizontal)
FoundEdgeEvent
ReturnToOriginalPosition(移动球)
因此,只需将该dll添加到您的项目中即可.
Google..."DoMyHomeworkForMe.dll". It contains the following classes, methods, and events:
MovingBall
StartMovementInDirection(MovingBall, Direction.Horizontal)
FoundEdgeEvent
ReturnToOriginalPosition(MovingBall)
So, just add that dll to your project and you''ll be done.
这篇关于我们如何在随机方向上创建一个移动的球?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文