I hope this can be made to work with the default (for the star passability and the other passability options like the directionals)
This is just a prototype I quickly threw something together in hopes that someone will see it and go "ooh that is really easy I can make it better"
In fact it does not work with victor's pixel movement, though I am not too sure why.
For the script to be actually usable, that pixel checking function will need to be written in something faster than Ruby. At least, the way I have designed it you just need to load the passage settings once and all of it is cached.
At some point, I will add the ability to change the collision settings using script calls, so you can basically change the passage settings of each and every tile without actually swapping the tiles.
This script's goal is to separate passage settings from the tiles themselves.
EDIT: figured out why it doesn't work for victor's pixel movement: there are floats instead of integers.
So rather than just treating each pixel as a single (x,y) coordinate, it uses some strange mapping from tile coordinates to...some partial tile coordinates.
LOL! Nice work. Looks like me mentioning it in that other thread didn't fall on deaf ears. xD
Will you be making this compatible with victors now that you know what to do?
I hope you're able to get it working with pixel movement... They'd be a great combination! TuT
victors pixel movement goes by every 4 pixels in case that helps, so the events movement can only be divided up to 8.
I know his script also allows an event to have a specific size depending on the comment call <event size: x y> inside the appropriate page, perhaps whatever method he uses to check the players collision and the events collision may help? The default for the collision of the event is also the size of the sprite.
I'm curious, can this script allow the player to move behind walls and buildings as well walk through hidden passage ways and be hidden by the correct tileset?
I believe this script only deals with walk passability, the over and under tiles would still be governed normally through the default scripts.
I see. Would love to have a demo of this script as it sounds very interesting.
I have updated the script.
The collision map creation is now done in a dll function so it should be faster.
For extremely large maps, you will still notice delay (for example, a 100x100 map takes me an extra 0.02 seconds to load, which is obviously slower than immediate)
Currently there is no "padding" done, so if you are working with 32x32 tiles, you must make sure that you are aligned to a 32x32 grid. If you partially color a tile, you will find that it is still passable.
I will figure out how to sample the tile at a later date.
I have also added a demo.
Wow, this is script I looking for, btw it is possible to reduce the collusion smaller than 32x32 tile?
The collision map already supports pixel collision checks (1x1 in size), however it doesn't provide any functionality for the actual collision checks as the purpose of this script is to load the collision map.
You will need to look for another script that will provide the appropriate collision checking.
Ah, so I need another script, okay thanks for the information =w=/