Adjustment to NeonBlack's Terrain Tags Script

Discussion in 'RGSS3 Script Requests' started by Dawn of Dark, Jun 18, 2014.

  1. Dawn of Dark

    Dawn of Dark Veteran Veteran

    Messages:
    45
    Likes Received:
    2
    First Language:
    Vietnamese
    Hey community.

    I'm using NeonBlack's Terrain Tags Script in tandem with Victor's Pixel Movement script and they are working together without any problem.

    With NeonBlack's Terrain Tags script, I mostly use his cover and block tags to be able to go under walls and ceilings tiles. I used to use the bridge tags in the project, too, but since I implemented Victor's Pixel Movement script, I stop using those tags because of incompatibility issues and I've found other way of making a bridge anyway (if you're interested).

    Anyway, because as of now, my character's pixel-move and can walk under walls and ceilings, there are weird moments when the characters had their top of their sprite shown when they are supposed to be covered, like in this picture:

    [​IMG]

    Of course, the picture is just to prove my point. So, What I am asking you to do is to add another region tag which will both cover and block the player at the same time, which can be achieve if you set the same region number for both COVER and BLOCK tag in the script.

    The default settings are the tag for COVER tiles is 18 and BLOCK tiles 19. Whenever you put the region tag 18 on a tile, they will be passable and cover you. Same goes for tag 19, only that it blocks you completely instead.

    [​IMG]

    So if you change the BLOCK tag to 18, whenever you put tag 18 on a tile, it will cover and block you at the same time.

    [​IMG]

    That's what I'm trying to achieve here. I want to preserve the original tags, while adding a new one that will both cover and block the player at the same time. The Terrain Tag script is rather simple, while Victor's Pixel Movement script is more complex, but I don't think you will need to change anything to Victor's script, since both is working fine together, just keep it in mind. I have added both scripts below, for convenience and also because Victor's script links are not working. I also added a experiment project below which contains the script regarding this request (don't concern your self with other things in the project). If you need more info of the scripts itself, please refer to the links above.

    Terrain Tags.txt

    Experiment.rar

    Pixel Movement.txt
     

    Attached Files:

    Last edited by a moderator: Jun 18, 2014
    #1
  2. Dawn of Dark

    Dawn of Dark Veteran Veteran

    Messages:
    45
    Likes Received:
    2
    First Language:
    Vietnamese
    Bump.
     
    #2

Share This Page