Results 1 to 2 of 2

Thread: pset collision detection help

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2002
    Posts
    3

    Angry pset collision detection help

    Ok long story short 30% of my computer science mark depends on the answers i get from you guys.

    Ok in 25(18 waking hours) hours I need to have the engine for a vb rpg game working and all is done except the movement of the character in a room. For the collision detection I made a black border around the stuff the character cant walk over and I am checking the points around him to see if they are black or not. Hear is the code it is very simple and kind of insufficient but most of that makes up in the process of changing the state of his feet and angle of his body (witch I cut out because it wasn’t working anyway). the problem is it will only stop me when i move to the top wall and not the other ones.
    any help or ideas for a better way would be appreciated

    thanks
    Attached Images Attached Images  

  2. #2
    Frenzied Member Jim Davis's Avatar
    Join Date
    Mar 2001
    Location
    Mars base one Username: Jim Davis Password: yCrm33
    Posts
    1,284
    store the information about your block boxes (like .left, .right.,.top.bottom) in an array... then you will able to get the correct information..

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width