开发者

If one object is touched by another object, do something? [closed]

开发者 https://www.devze.com 2023-04-05 06:20 出处:网络
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form. For help clari
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. 开发者_StackOverflow Closed 11 years ago.

I am making a game in which you move the character with the arrow keys, and I want to do something when it collides with a certain step. (See picture below). I want the top value of my character to increase every time it touches the steps, and the second flight of stairs, I want it to descend. I have tried and tried to no avail. Any help?

If one object is touched by another object, do something? [closed]


Doing a Bing search on Collosion detection with VB6, I found a few articles out there.

Try looking at:

  • http://www.vb6.us/tutorials/rectangular-and-circular-collision-detection-vb6

But as @Matt Ball is trying to say, is in order to help you we need to see what code you have tried. Otherwise anything we come up with is just a guess of what your problem is.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号