![]() ![]() So, if I ease the curve, lowering vDistance rate at each frame, the curve will be made broader in certain areas, making this path relisilent. Hmmm eureka! I can use the second picture below to plot a Phanto path, using polar coordinates. Although it will be smoother to see and appreciate, phanto can live without it. ![]() However, as I've said before, I dont give extreme importance to a total curvy movement. That's because, on (3), Phanto will make a opposite curve and then chase Peach again, going NW. Below, the desired mechanism (I think I can use that way, but I will need more SINE/COSINE functions). The problem is that I need to use the last _x and _y from the code above to the 'chase Peach' algorithm, lessening the curve smoothly (I can do that decreasing vRotation rate), that is, "vRotation-=rotationRate" can be a LOG function or any non linear one. Ivan-Aedler Wrote:Depending on where Phanto is going (towards NE/SE/NW/SW), where Peach might be, it uses a starting angle (In Flash coordinate system, angle counting starts with '0 degress' where 180 degrees in carthesian space is set). Ivan-Aedler Wrote: Code: Select All Code else if (interactions>0) // each interaction will m… or, even denser: Code: Select All Code char._y += ywalk * ysign / step and one final improvement: Code: Select All Code char._y += yvelocity / step However you go on from there: ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |