For my GR.11 final project i am making a fan based rendition of a pokemon game. I know how i'm going to do most of my stuff because I've tried it with previous projects, however, I am wondering if there is a simpler way to do object collision. The way i usually do it, is with one very long if statement that checks for which direction the character is moving (Based on key press) and then which object it is colliding with (Using the IntersectsWith function) and then responds. However since i have multiple objects it can collide with, sometimes up to 50, I wonder if it is possible to create a sub procedure for it? i've tried but i can't figure it out. any help is appreciated, thank you in advance.
↧