Hi! 🤘 🤘
As simple as it sounds, I'm hoping someone can shed a light on my issue please
I'm trying to have the actors move towards the target instead of jumping to the target as a move type in Schala BS. https://atelierrgss.wordpress.com/download-page-5/
After doing some print tests(and thanks to Tsukihime...I'm gonna make u a star! =D), I've found that this method is called right before the actor jumps towards the target.
#-------------------------------------------------------------------------- # ● Move To Target #-------------------------------------------------------------------------- def move_to_target if self.battler.is_a?(Game_Enemy) self.orig_pos_x = self.x self.orig_pos_y = self.y end self.action_movement[3] = 60 self.priority_type = 2 self.jump_count = 0 self.jump_peak = 0 jump_position_target end And then it goes to here:
#-------------------------------------------------------------------------- # ● Jump_position target #-------------------------------------------------------------------------- def jump_position_target return if self.action_movement[4] == nil turn_toward_character(self.action_movement[4]) target_x = self.action_movement[4].x target_y = self.action_movement[4].y self.jump_count = 0 self.jump_peak = 0 nx = self.action_movement[4].x - self.x ny = self.action_movement[4].y - self.y jump_high(nx ,ny ,10) turn_toward_character(self.action_movement[4]) end and then it finally jumps towards the target
def jump_high(x_plus,y_plus,high = 10) @x += x_plus @y += y_plus distance = Math.sqrt(x_plus * x_plus + y_plus * y_plus).round @jump_peak = high + distance - @move_speed @jump_count = @jump_peak * 2 @stop_count = 0 make_pose("", 0) $game_temp.event_wait_movement = @jump_count straighten endAny idea where I can edit to make the actor move towards the target instead of jumping? I've been doing trials and errors for days but still havent figured it out. I tried changing the @jump_count to values of like up to 1000 and that threw the actors in a weird motion. But, I think I may have found some light with this below code:
#-------------------------------------------------------------------------- # ● Move Position #-------------------------------------------------------------------------- def moveto_target(px = 0 , py = 0,jump = false ) jump_count = 0 jump_peak = 0 nx = user_target.x + px ny = user_target.y + py nx = real_cx_max if nx > real_cx_max nx = real_cx if nx < real_cx ny = real_cy_max if ny > real_cy_max ny = real_cy if ny < real_cy self.jump_high(0,0,10) if jump self.x = nx self.y = ny endNot sure if this is the solution but I figured it could be a help taking it that its not a jump movement cuz of "self.jump_high(0,0,10) if jump". However, I have no clue how to call it or use it. 🙁
As simple as it sounds, I'm hoping someone can shed a light on my issue please

I'm trying to have the actors move towards the target instead of jumping to the target as a move type in Schala BS. https://atelierrgss.wordpress.com/download-page-5/
After doing some print tests(and thanks to Tsukihime...I'm gonna make u a star! =D), I've found that this method is called right before the actor jumps towards the target.
#-------------------------------------------------------------------------- # ● Move To Target #-------------------------------------------------------------------------- def move_to_target if self.battler.is_a?(Game_Enemy) self.orig_pos_x = self.x self.orig_pos_y = self.y end self.action_movement[3] = 60 self.priority_type = 2 self.jump_count = 0 self.jump_peak = 0 jump_position_target end And then it goes to here:
#-------------------------------------------------------------------------- # ● Jump_position target #-------------------------------------------------------------------------- def jump_position_target return if self.action_movement[4] == nil turn_toward_character(self.action_movement[4]) target_x = self.action_movement[4].x target_y = self.action_movement[4].y self.jump_count = 0 self.jump_peak = 0 nx = self.action_movement[4].x - self.x ny = self.action_movement[4].y - self.y jump_high(nx ,ny ,10) turn_toward_character(self.action_movement[4]) end and then it finally jumps towards the target
def jump_high(x_plus,y_plus,high = 10) @x += x_plus @y += y_plus distance = Math.sqrt(x_plus * x_plus + y_plus * y_plus).round @jump_peak = high + distance - @move_speed @jump_count = @jump_peak * 2 @stop_count = 0 make_pose("", 0) $game_temp.event_wait_movement = @jump_count straighten endAny idea where I can edit to make the actor move towards the target instead of jumping? I've been doing trials and errors for days but still havent figured it out. I tried changing the @jump_count to values of like up to 1000 and that threw the actors in a weird motion. But, I think I may have found some light with this below code:
#-------------------------------------------------------------------------- # ● Move Position #-------------------------------------------------------------------------- def moveto_target(px = 0 , py = 0,jump = false ) jump_count = 0 jump_peak = 0 nx = user_target.x + px ny = user_target.y + py nx = real_cx_max if nx > real_cx_max nx = real_cx if nx < real_cx ny = real_cy_max if ny > real_cy_max ny = real_cy if ny < real_cy self.jump_high(0,0,10) if jump self.x = nx self.y = ny endNot sure if this is the solution but I figured it could be a help taking it that its not a jump movement cuz of "self.jump_high(0,0,10) if jump". However, I have no clue how to call it or use it. 🙁