Quasi Movement

Yeah, I find that you have to be touching the event's bounding box to trigger it. If the event is completely inside an impassable area, it won't be triggered (even if its border coincides perfectly with the area's border). As long as there is at least one pixel sticking out, though, you can trigger it.
@Exhydra


Sure I'll add a function to be able to grab the TileID so you can input them manually if needed. Also for parallax mapping, I figured people would make collision maps which just makes setting up the collisions tons easier.
For some maps I would create a collision map, but for some straight forward maps like a hallway or somesuch I just use the blank, impassible tiles.
Yeah, I find that you have to be touching the event's bounding box to trigger it. If the event is completely inside an impassable area, it won't be triggered (even if its border coincides perfectly with the area's border). As long as there is at least one pixel sticking out, though, you can trigger it.
That can be a serious problem and far as my game is concerned, it would be a no go because I already have a ton of events (as I am sure you and like million others have) that can be triggered from a tile immediately outside of it.
Alright well, I found out I forgot to add in shift_y into the box overlapping check. And because of that Tile events don't have the correct box. After fixing it, I can interact with a door event ontop of a wall with the door having the following box:

<bbox=32,32,0,0>If you want to test if that's the problem while w8ing for the patch, try:

<bbox=32,32,0,4>@Exhydra

Now that I looked back through it. I'm using passage flags not tile ids. So because of this you can't change the blank tile's box to impassable since it's using the o ( circle ) passage, ( flag is 1536 ). But if you make that flag impassable that'll make all the open passage tiles impassable. So your best bet is to either make the blank tile impassable by making it x instead of o. Or make a Region Box, In script I have 2 region boxes set up, one for region 62 and 63, 63 is impassable.
Alright well, I found out I forgot to add in shift_y into the box overlapping check. And because of that Tile events don't have the correct box. After fixing it, I can interact with a door event ontop of a wall with the door having the following box:

<bbox=32,32,0,0>If you want to test if that's the problem while w8ing for the patch, try:

<bbox=32,32,0,4>@Exhydra

Now that I looked back through it. I'm using passage flags not tile ids. So because of this you can't change the blank tile's box to impassable since it's using the o ( circle ) passage, ( flag is 1536 ). But if you make that flag impassable that'll make all the open passage tiles impassable. So your best bet is to either make the blank tile impassable by making it x instead of o. Or make a Region Box, In script I have 2 region boxes set up, one for region 62 and 63, 63 is impassable.
When I applied the mentioned bounding box specifications to a comment in the event, it worked exactly the way it is supposed to. 
@Exhydra


Now that I looked back through it. I'm using passage flags not tile ids. So because of this you can't change the blank tile's box to impassable since it's using the o ( circle ) passage, ( flag is 1536 ). But if you make that flag impassable that'll make all the open passage tiles impassable. So your best bet is to either make the blank tile impassable by making it x instead of o. Or make a Region Box, In script I have 2 region boxes set up, one for region 62 and 63, 63 is impassable.
Eeh, if that's the case I'll just use a collision map for everything. Not really a huge deal.
Ok it looks like I have yet another problem. I set the event frequency to 32 but for some reason the character stops midway.

Its like this: I have the character go up to a door, I press the action button and the door opens, the character proceeds through but stops midway and the door shuts on him and I have to press the action button again multiple times (thereby activating the event multiple times) until he is all the way out the door. 

Just in case this is what my setup looks like.

Spoiler
Code:
#==============================================================================# ** Quasi Movement v1.5.7#  Require Module Quasi [version 0.4.4 +]#    [URL="http://quasixi.com/quasi-module/#"]http://quasixi.com/quasi-module/#[/URL]  If links are down, try my github#    [URL="https://github.com/quasixi/RGSS3#%23"]https://github.com/quasixi/RGSS3##[/URL]  **Remove Quasi Collision Map if you are using this!  Collision Map is no#  **longer needed since it is built into this now!#=============================================================================# ** Terms of Use# [URL="http://quasixi.com/rgss3/terms-of-use/#"]http://quasixi.com/rgss3/terms-of-use/#[/URL] [URL="https://github.com/quasixi/RGSS3/blob/master/README.md#==============================================================================%23"]https://github.com/quasixi/RGSS3/blob/master/README.md#==============================================================================#[/URL]  Changed how movement works.  Allows players to choose how many pixels to move# per movement.  In better terms, allows players to make characters have a pixel# movement or still by by a grid like 32x32 or even 16x16.#  Changed how collisions work.  Events now have bounding boxes surrounding them.# If two boxes touch there will be a collision.  Boxes can be set in each event,# further detail in the instructions.#==============================================================================# Collision Map Info:#  Allows the use of an image with collisions.  Using this you can setup# a pseudo perfect pixel collision.#  To have a map use a collision map, use the following in the maps notetag#    <cm=NAME>#  Map note tags are found in the map properties#  Set Name to the name of the collision map you want to use, this image#  should be inside the parallax folder!#==============================================================================# How to install:#  - Place this below Module Quasi (link is above)#  - Make sure the version of Module Quasi is the required version.#  - Follow instructions below## Extra instructions + Bounding box setup help at:#  [URL="http://quasixi.com/movement/#==============================================================================module"]http://quasixi.com/movement/#==============================================================================module[/URL] Quasi  module Movement#------------------------------------------------------------------------------# Setup:#    GRID to the amount of pixels you want to move per movement.#  Default is 1, meaning pixel movement.  This can be changed back#  to 32 which is vxa default tile movement.#------------------------------------------------------------------------------    GRID      = 1#------------------------------------------------------------------------------#    OFFGRID when set to true it will allow characters to move faster then#  the set GRID. This should be set to false for fixed grids like 16 or 32.#------------------------------------------------------------------------------    OFFGRID   = true#------------------------------------------------------------------------------#    FLOAT_XY when set to true x and y values will be a decimal instead of a#  whole number. By default this is false, but setting this to true might #  allow compatibility with other scripts.#------------------------------------------------------------------------------    FLOAT_XY  = false#------------------------------------------------------------------------------# Optimizing settings:#  SMARTMOVE#      If the move didn't succeed it will try again at lower speeds until#    speed reaches 0.  This should only be used at lower grids like 1.#      If movement fails it will attempt additional similar movements.#  Values:#    false   to disable#    :speed  tries different speeds if move failed#    :dir    tries different similiar directions if move failed (DIR8 needs to be true)#    :both   both :speed and :dir#------------------------------------------------------------------------------    SMARTMOVE = :both#------------------------------------------------------------------------------#  MIDPASS#      An extra collision check for the midpoint of the movement.  Should be#    be used in larger grids if you have small boxes that can be skipped over#    at certain speeds.#    (Default passibilty only checks if you collided with anything at the point#     you moved to, not anything inbetween)#------------------------------------------------------------------------------    MIDPASS   = false#------------------------------------------------------------------------------#  OPT is set to an integer which can help optimize the collision detection#  What this does, it scans every X pixel, so if OPT was set to 5, it will scan#  every 5th pixel when needed.  Depending on how detailed your collision maps#  are you should use 1 or 2. If you are not using collision maps and your#  maps are using tileboxes, then you can get away with 4 for pixel movement.#------------------------------------------------------------------------------    OPT       = 32#------------------------------------------------------------------------------#    Set DIR8 to true or false.  When true it will allow for 8 direction#  movement, when false it will not.#  (This does not include an 8 direction frame)#------------------------------------------------------------------------------    DIR8      = true#------------------------------------------------------------------------------#    DIAGSPEED.  This adjusts the speed when moving diagonal.  Set to#  0 if you want to stay at same speed.  Floats and negative values#  are allowed.  #    Ex: 0.5 and -0.5#------------------------------------------------------------------------------    DIAGSPEED = 0#------------------------------------------------------------------------------#    Set PLAYERBOX and EVENTBOX.  This sets the bounding box for the #  player character or event.#    Good box for small grid( like GRID = 1):   [24, 16, 4, 16]#    Good box for bigger grid( like GRID = 32): [22, 22, 5, 9]##  Each actor can have their own bounding box by setting up a#  bounding box inside the actors note tag.#------------------------------------------------------------------------------    PLAYERBOX  = [24, 16, 4, 16]    EVENTBOX   = [24, 16, 4, 16]    VEHICLES   = {      :boat     => [22, 22, 5, 9],      :ship     => [22, 22, 5, 9],      :airship  => [22, 22, 5, 9]    }#------------------------------------------------------------------------------# Set EVENTFREQ.  #    This changes how many pixels an event should move before stopping.#  For default vxa an event moves 32 pixels then stops a short time depending#  on his frequency.  So if we have a pixel grid movement (GRID = 1) we can#  duplicate that feature by setting this to 32, and the event will move 32 pixels#  until he stops, instead of stopping at every pixel.#------------------------------------------------------------------------------    EVENTFREQ = 32#------------------------------------------------------------------------------
Anything beyond that is completely untouched.
Quasi can correct me if I'm wrong, but I think EVENTFREQ = 32 only works for autonomous movement. For Move Route, you should use the qmove(direction,amount,multiplicity) script call instead of the regular commands. Instructions here.
Quasi can correct me if I'm wrong, but I think EVENTFREQ = 32 only works for autonomous movement. For Move Route, you should use the qmove(direction,amount,multiplicity) script call instead of the regular commands. Instructions here.
Ok it says here: 

direction is set to 2, 4, 6, 8 or for a diagonal move use 1, 3, 7, 9
Which number is which direction? Also for the event in question, it has no specified direction other then forward. 
Yes Rairun is correct, EVENTFREQ is primary used for events. It just tells the event to stop / take a break after X amount of steps.

2 is down

4 is left

6 is right

8 is up

1 is down left

3 is down right

7 is up left

9 is up right

You can look at your number pad if you forget, and if you have a numberpad on your keyboard. Most of them have arrows on the 2, 4, 6, 8 keys and just look at the direction the arrow is pointing.

So if you want the player or event to move up 64 pixels ( 2 tiles), you'll use

qmove(8, 64)or if you want to use multiplicity

Code:
qmove(8, 2, 32)
OK but in this case I have it set to where the character moves in no specified direction other then forward which can be any of those directions. what do I do for those?
Mm I never really thought of that lol, I can probably add that in. But for now you can make a conditional branch to check each direction.

So it would look something like in the event:

Code:
If player is facing up  qmove(8, 32)endIf player is facing down  qmove(2, 32)endIf player is facing left  qmove(4, 32)endIf player is facing right  qmove(6, 32)end
Actually no, I will wait for a fix instead
Alright, well the update will probably be released on Friday. Still trying to fix the followers diagonal movement. I fixed the issue with speed, but found another bug that causes the followers to just stop following and still working on a game crash bug possibly related to my optimize script.
I'm having a little more trouble with the followers then I thought I would lol. So I'm posting a small patch for the other fixes since this might take me another week or two to fix depending on my free time next week.

Paste this somewhere below Quasi Movement.

Spoiler
#==============================================================================# ** Bounding_Box#------------------------------------------------------------------------------# This class handles bounding boxes for characters.#==============================================================================class Bounding_Box #-------------------------------------------------------------------------- # * Box dimension #-------------------------------------------------------------------------- def box(x, y) bx = (x + @ox)..(x + @width + @ox) by = (y + @oy - @shift_y)..(y + @height + @oy - @shift_y) return [bx, by] endend#==============================================================================# ** Game_Character#------------------------------------------------------------------------------# A character class with mainly movement route and other such processing# added. It is used as a super class of Game_Player, Game_Follower,# GameVehicle, and Game_Event.#==============================================================================class Game_Character < Game_CharacterBase #-------------------------------------------------------------------------- # * Replace qmove() with real moves #-------------------------------------------------------------------------- def sub_qmove move = { 2 => ROUTE_MOVE_DOWN, 4 => ROUTE_MOVE_LEFT, 6 => ROUTE_MOVE_RIGHT, 8 => ROUTE_MOVE_UP, 1 => ROUTE_MOVE_LOWER_L, 3 => ROUTE_MOVE_LOWER_R, 7 => ROUTE_MOVE_UPPER_L, 9 => ROUTE_MOVE_UPPER_R, 5 => ROUTE_MOVE_FORWARD, 0 => ROUTE_MOVE_BACKWARD} @move_route.list.each_with_index do |list, i| next unless list.parameters[0] =~ /qmove/ qmove = list.parameters[0].delete "qmove()" qmove = qmove.split(",").map {|s| s.to_i} qmove[2] ||= 1 amt = (qmove[1] * qmove[2]) / move_tiles amt.floor.times do @move_route.list.insert(i+1, RPG::MoveCommand.new(move[qmove[0]])) end end @move_route.list.delete_if {|list| list.parameters[0] =~ /qmove/ } memorize_move_route endend This patch fixes the tile event boxes that didn't work properly, and I also added in 5 and 0 into qmove.

For qmove, 5 is move foward and 0 is move backwards ex:

# example 1, move foward 32 pixelsqmove(5, 32)# example 2, move backwards 32 pixelsqmove(0, 32) ( I actually didn't test qmove, but ideally it should work. )
Yeah, the bounding boxes "fix" still doesn't fix the issue of triggerable events placed on impassable tiles not working.  :headshake:
You still have to set up the box correct. When pushing the action button, it will check if theres any event 1 px away. So if that event is on an impassable box ( 32 x 32) then the event should also have a 32x32 box.

In which case, the box should be:

<bbox=32,32,0,0>same as before, just without that 4 now. Since that 4 was fixing the bug before.
Wahooooooo! I'm SOOOO in love with this script!!!!

I recorded a test video of it + Lune's Smooth Camera Sliding script (which I thought this'd crash with) and man that was so EASY to configure!

The only thing I haven't added yet is a proper overlay picture so that the parts properly overlap the player, but that should be quick and easy. I'll try it again and rerecord. The sheer possibilities of what this engine brings amazes me! Omg! I can finally recreate that delicious ps1 Legend of Mana/SaGa Frontier 2 aesthetic!!! <3




The graphics I used were this: www.spriters-resource.com/playstation/sagafrontier/sheet/53696/ and this: http://www.spriters-resource.com/playstation/sagafrontier/sheet/10924/, the collision map was awfully simple to create! Gosh. I can't contain my excitement.
Any easy way to set the direction to be the direction towards or away from the player? 

EDIT2: After some research I think I figured out one of the issues that I have. I'm running a jump script and as the player or events jump there's a moment when collision is not checked I think because at the moment the player or event is considered "above" or higher priority. Any ideas?

EDIT:
Another question, how do I check for passability? now that it seems like it changed my old method of doing:

"if $game_map.events[id].passable?($game_map.events[id].x-0, $game_map.events[id].y-3, 2)" is not working. Probably because it's checking tiles, and confusing the hell out of things.
Hey Quasi, any news on the follower speed bug when DIAGSPEED isn't set to 0?

Original thread: https://forums.rpgmakerweb.com/threads/quasi-movement.34088/