I saw this method in Game_Player
def update last_real_x = @real_x last_real_y = @real_y last_moving = moving? <------ move_by_input super update_scroll(last_real_x, last_real_y) update_vehicle update_nonmoving(last_moving) unless moving? <--------- @followers.updateendFirst, what is the point of this, and second, why is it written this way?Third, if I did this, would it change the logic?
def update last_real_x = @real_x last_real_y = @real_y last_moving = moving? <------ move_by_input super update_scroll(last_real_x, last_real_y) update_vehicle update_nonmoving(last_moving) unless moving? <--------- @followers.updateendFirst, what is the point of this, and second, why is it written this way?Third, if I did this, would it change the logic?
Code:
def update last_real_x = @real_x last_real_y = @real_y move_by_input <------ last_moving = moving? <------ re-arrange super update_scroll(last_real_x, last_real_y) update_vehicle update_nonmoving(last_moving) unless moving? @followers.updateend
Last edited by a moderator:
