[RMVX ACE] HOW TO MAKE SO CHARACTERS DONT GO INTO EACH OTHER
Posts
Pages:
1
so in rpg maker vx ace if you have your followers and there up on each other they will go into each other and it looks really wierd is there a script or some way to fix this?
If you want to set it up so that followers can obstruct one another, and the lead character, I think that's in Game_Follower.
In the case where you just want them to obstruct each other, that might be an edit to...
...this function, also found in Game_Follower. Though, I'm not exactly sure what, or where, the edit would entail!
*Edit: Strike the initial suggestion. A test-drive of that switch still allows the player character and followers to clip through each other.
class Game_Follower < Game_Character #-------------------------------------------------------------------------- # * Object Initialization #-------------------------------------------------------------------------- def initialize(member_index, preceding_character) super() @member_index = member_index @preceding_character = preceding_character @transparent = $data_system.opt_transparent #@through = true @through = false end end
In the case where you just want them to obstruct each other, that might be an edit to...
#-------------------------------------------------------------------------- # * Pursue Preceding Character #-------------------------------------------------------------------------- def chase_preceding_character unless moving? sx = distance_x_from(@preceding_character.x) sy = distance_y_from(@preceding_character.y) if sx != 0 && sy != 0 move_diagonal(sx > 0 ? 4 : 6, sy > 0 ? 8 : 2) elsif sx != 0 move_straight(sx > 0 ? 4 : 6) elsif sy != 0 move_straight(sy > 0 ? 8 : 2) end end end
...this function, also found in Game_Follower. Though, I'm not exactly sure what, or where, the edit would entail!
*Edit: Strike the initial suggestion. A test-drive of that switch still allows the player character and followers to clip through each other.
Pages:
1















