A1VBCode Forums

How to check what object have you collide?


http://www.a1vbcode.com/vbforums/Topic16033.aspx

By maria_tachi - 1/17/2006

Hi guys,

          Currently I using bounding box collision detection to make an animal eat some food. How can I use collision detection to differentiate what food I eat? For instance, I have two food grass and milk. I want the animal to know that it is some grass or a bowl of milk. Hence, how do I go about checking what food is it?

          I remember in C++ there is this function where you list down the object that you going to collide and check whether is it the one that you want. Hence, how does Vb.net works?

--Maria--

By Manku_D - 5/24/2006

Hello Maria,

Just want to tell u that if u r a advanced user then u can download many examples from this site itself and u can know how to do the collosion i have done this but i cannot understand how to do if u can understand then plz tell me also.

If u want to different between milk and grass in ur game then u can gave some code or identity for milk and grass i think it will work.

Hope u will find this helpfull

bye take care Manku