LoK Collisions

Report any bugs that need fixing here. Please subscribe to your topics as they may be moved if they are not really bugs.

LoK Collisions

Postby GolanTrevize » Fri Jul 22, 2011 9:44 am

Well, this is not actually a bug, it´s a suggest (but I didn´t knew where to place it). When I play LoK, I see that scenes with a lot of monsters (e g: tabern) are slower than normal ones (e g: bedroom). I think that it´s because in the code someone wrote something like that :

if (monster.hitTest(krystal._x, krystal._y, true)){
buttonfuck._visible = true
}

`cause my experience playing the game i think its like that (i have a older version of flash so i can´t open the .fla) but if it´s not i´m sorry.

Well, if the code is this, it makes his function, but "too" well. When you write "true" in the hitTest you ara asking the player if the point is hitting a complex shape as tha monster. You would write false, so the player only checks the square inside the monster is drown. It´s much more faster, and I thing that I´ts enough precission for this game. So the code i propose is this:

if (monster.hitTest(krystal._x, krystal._y, false)){
buttonfuck._visible = true
}
Current project: Dark moon (Artists needed)
User avatar
GolanTrevize
 
Joined: Wed Jul 20, 2011 3:32 pm

Return to Bugs



Who is online

Users browsing this forum: No registered users