ok.. with the sphere grid system was much easier than I thought.. you just have to change one method in the sphere grid script.. ^^
its the Check Range starting in line 899, just replace it with this one:
def check_range(element, object, range = 16)
x = (element.x - object.x) * (element.x - object.x)
y = (element.y - object.y) * (element.y - object.y)
r = x + y
return r <= (range * range)
end
Expand to see the code.
(the problem why it didnt work was, that the range was equal to 1 before, but a range of 1 means only 2Px on the map, because of the pixelmovement script.. (normally 1 is a whole tile = 32Px)
now you only have to make a collision map and it'll work..
for the event sizes of those switches you cannot write a comment yet inside the event for the sizes, because the sphere grid script also uses comments.. ;)
but I'll change this in the update of the pixel script, so that you can also use the second comment in an event for the sizes.. (e.g. like this: )
Agi 10 # -> for the sphere grid
Event_Size: # -> for the event size
32
Expand to see the code.
at the end I also found out that you have to turn the sprint switch of the pixel script to off while moving on the sphere grid, otherwise the game will crash if you try to spring on the sphere grid.. ^^
@Myonosken: of course this would be very easy, but it also would look very like..
THIS, which is a collision map for an inner map of my project.. looks quite strange, doesnt it?^^ So I think real minimaps are much better.. This is also no problem, but I dont know yet how it should look like at the end.. I think nobody needs a minimap which only shows an extract of 640x480Px of the map because you can already see this without a minimap.. ;)
anyone has an idea how to solve this?^^
@Dirtie: I'll add this.. ^^
so heres a small to do list again, of what I'll add the next days..
- Minimap
- New option for the caterpillar script: chars dont merge anymore ( for this I had to rebuild the complete Caterpillar Script..
- New option for the sprint script: you can only sprint for a special time and after this you have to wait some time
- Better handling of the event sizes (this is a thing which you wont feel at all, but it'll be easier for me.. ;) )-f0tz!