
-----------------------------------
Janssen
Fri Jun 16, 2006 9:39 am

collision problem
-----------------------------------
Im currently creating a snake game and am having issues collecting the eggs, with the code Im having trouble setting the range that the images top and left to collide with the eggs top and left range, they both strech from its initial top and left to top+120 and left+120 

    If imgSnake(FrameCount).Left >= imgEgg.Left And imgSnake(FrameCount).Left + 120 = imgEgg.Top And imgSnake(FrameCount).Top + 120 = imgEgg.Left And imgSnake(FrameCount).Left + 120 = imgEgg.Top And imgSnake(FrameCount).Top + 120 