2 Attachment(s)
Little help needed (Math, IsoGrid)
Hi, in this example I want to make 8 way mouse controlled movement based in the grid. But I cant find the good way how to tell MMF (just from the mouse coordination) which of the 8 nearest cells should use. In this file you can see my method using Sin, Cos -its bad, non-accurate and cause a lot of problems but I did just to example what I need to do. I need only nearest cell (its step-by-step movement in exact straight lines). Thank you for any help
Extensions needed:
Angle Calculator
Iso Grid
2 Attachment(s)
Re: Little help needed (Math, IsoGrid)
Here ya go... changed from the angle calculator to the advanced direction object...
Re: Little help needed (Math, IsoGrid)
Thank you, it looks very promising :) Could you explain to me why there are numbers 24 and 48? Thank you!
Re: Little help needed (Math, IsoGrid)
Because it's isometric, every square is 64x32 pixels.. You could just use 30 for both if you like but I find this better ;)