by pixelpoop » Thu Aug 23, 2007 11:41 pm
I have tried using distance instead of collision and it didn't help up the speed very much. What has helped is using getactor, but you have to check it a bunch of times if your actor has any form(for every side you want to check). I use it something like this:
Actor *actors ;
actors =getactor(x+15, y); //this checks the right side of the player
if(actors){
if(actors[0].variable_name==1){health_variable-=5;} }
note: if you have a bunch of actors overlapping and you don't know the order, then you will have to check the whole string of names. ie actors[0], actors[1] etc. which will slow down the game a bunch.