Search code examples
objectvb6collision-detection

If one object is touched by another object, do something?


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?

Program Game


Solution

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

    Try looking at:

    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.