Kimchee
12-04-2008, 06:29 AM
I have a class for a hero that allows him to move and shoot and whatever else.
I also have a class for villians, and am wondering how I can do a collision test in the villians class so no matter what weapon my hero may have if the villian is on screen it is checking for a collision.
I can do this not within a class via big bulky code for each stage, but that seems redundant and I just want to be able to add a child and have that child automatically be doing collision tests for a variety of weapons.
Can someone help me out? Thanks :rolleyes:
I also have a class for villians, and am wondering how I can do a collision test in the villians class so no matter what weapon my hero may have if the villian is on screen it is checking for a collision.
I can do this not within a class via big bulky code for each stage, but that seems redundant and I just want to be able to add a child and have that child automatically be doing collision tests for a variety of weapons.
Can someone help me out? Thanks :rolleyes: