RMVXAce Camera bug

I was doing a commission and then during some testing this happened.

First look at this:

Ifv8Q1c.jpg


Then behold:




Looks like the spriteset doesn't update at the same rate the camera does. That's all I know.

Event Jitter fix does nothing about it in my case.
I'm not sure I understand what the problem is.
Fullscreen the video and then look closely how the event that is following you with the same speed is reacting especially when the camera pans.

It's a lot more obvious in fullscreen and highres graphics. But for the sake of simplicity I used the default assets.
Looking at the code, I realized that events will always stop for 1 frame between steps, even at the highest frequency.


I'll test if it has anything to do with that.


edit: actually, it's 2 frames.
Pretty sure that's just the event processing needing to know which way the player is going before it can follow.
Add this and see if it fixes it:

Code:
class Game_Event < Game_Character  def update_self_movement    if near_the_screen? && @stop_count >= stop_count_threshold      case @move_type      when 1;  move_type_random      when 2;  move_type_toward_player      when 3;  move_type_custom      end    end    update_move if moving?  endend
Add this and see if it fixes it:

class Game_Event < Game_Character def update_self_movement if near_the_screen? && @stop_count >= stop_count_threshold case @move_type when 1; move_type_random when 2; move_type_toward_player when 3; move_type_custom end end update_move if moving? endend
Yup this definitely worked to some extent. I can still see it but not as bad as before.
this should have the same effect, but with a better compatibility:

Code:
class Game_Event < Game_Character  alias :hudell_event_movement_delay_fix_stop_count_threshold :stop_count_threshold  def stop_count_threshold    hudell_event_movement_delay_fix_stop_count_threshold - 1  end  alias :hudell_event_movement_delay_fix_update_self_movement :update_self_movement  def update_self_movement    hudell_event_movement_delay_fix_update_self_movement    update_move if moving?  endend
If you can still see it, there must be another frame being lost somewhere.
Maybe the frame is lost on the map scrolling. I mean that's what is left. Right?
I set the frame rate to 10 to test, this way I can notice it better: There's still a frame being lost even when no map scrolling is involved.

edit: new script:

Code:
class Game_Event < Game_Character  alias :hudell_event_movement_delay_fix_stop_count_threshold :stop_count_threshold  def stop_count_threshold    hudell_event_movement_delay_fix_stop_count_threshold - 1  end  alias :hudell_event_movement_delay_fix_update_self_movement :update_self_movement  def update_self_movement    hudell_event_movement_delay_fix_update_self_movement    update_move if moving?  end  alias :hudell_event_movement_delay_fix_update_routine_move :update_routine_move  def update_routine_move    @wait_count = 0 if @move_frequency == 5    hudell_event_movement_delay_fix_update_routine_move     update_move if moving?  endend
I set the frame rate to 10 to test, this way I can notice it better: There's still a frame being lost even when no map scrolling is involved.

new script:

class Game_Event < Game_Character alias :hudell_event_movement_delay_fix_stop_count_threshold :stop_count_threshold def stop_count_threshold hudell_event_movement_delay_fix_stop_count_threshold - 1 end alias :hudell_event_movement_delay_fix_update_self_movement :update_self_movement def update_self_movement hudell_event_movement_delay_fix_update_self_movement update_move if moving? end alias :hudell_event_movement_delay_fix_update_routine_move :update_routine_move def update_routine_move @wait_count = 0 if @move_frequency == 5 hudell_event_movement_delay_fix_update_routine_move update_move if moving? endend

Can we use it freely Hudell?
Can we use it freely Hudell?
sure.
Someone will have his name on my credits list for this. 😉

The least I can do.

Also, maybe the lost frame is due to this:

http://forums.rpgmakerweb.com/index.php?/topic/36786-parallel-process-events-execution-bug-fix/#entry365317
I think the last version of the script fixed all lost frames. At least I could no longer see any difference in speed between the player and the event even at 10fps.
I think the last version of the script fixed all lost frames. At least I could no longer see any difference in speed between the player and the event even at 10fps.
You mean your script?
You mean your script?
Yep. This one is the last version of it:

Code:
class Game_Event < Game_Character  alias :hudell_event_movement_delay_fix_stop_count_threshold :stop_count_threshold  def stop_count_threshold    hudell_event_movement_delay_fix_stop_count_threshold - 1  end  alias :hudell_event_movement_delay_fix_update_self_movement :update_self_movement  def update_self_movement    hudell_event_movement_delay_fix_update_self_movement    update_move if moving?  end  alias :hudell_event_movement_delay_fix_update_routine_move :update_routine_move  def update_routine_move    @wait_count = 0 if @move_frequency == 5    hudell_event_movement_delay_fix_update_routine_move     update_move if moving?  endend
Cool! So what SOURCE fixed there is another issue. Well, whoever reads through this thread gets a bonus script I suppose! 😀

I am building a game at the moment, and what @Archeia experienced is partly what I also experience all the time. 😛

Your script makes things significant better.
Moved the script to my github, so it won't be lost once this thread gets old:


https://github.com/Hudell/scripts/blob/master/standalone/bug_fixes/event_speed.rb
You should make a thread for that scrpt 🙂

Nice one!
Where should we put this script in the script list?

Original thread: https://forums.rpgmakerweb.com/threads/rmvxace-camera-bug.42556/