![]() ![]() I did this by using some basic quardratic calculations.īut it's basically a variant of Math.sqrt((x1-x2)^2.abs+(y1-y2)^2.abs) < splash range. All attacks/heals just fill the array with the entire party, so what to take the attack all scripts, and within the loop that checks to see if the monster exists, add in an additional check to make sure the conditions match.įor vertical, the condition would be enemy.base_position_x = target.base_position_xįor horitzontal, replace base_position_x with base_position_yįor splash, you'll need to do distance calculation. The other stuff is easy though.īasically, in battle_scene_4 there's an area that does targeting, and you'll notice that all targeting is done through arrays. Well, I've more or less figured out how to do the alternate range stuff in practice, but I can't get the cursor to display correctly.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |