+Karl G Posted March 5, 2018 Share Posted March 5, 2018 I have noticed that objects positioned within vblank jump around the screen before reaching their destination. I have written a small test program to show this behavior. Hit fire to reposition the ball on the screen randomly. vblank.bas vblank.bas.bin Quote Link to comment Share on other sites More sharing options...
ZackAttack Posted March 5, 2018 Share Posted March 5, 2018 Looks like you keep selecting a new random position each frame that the button is held down. Have you tried adding some additional logic so the reposition only happens when the button is pressed and was previously not pressed? Even a fast button press is going to span a few frames, which would cause what you're seeing. Quote Link to comment Share on other sites More sharing options...
+Karl G Posted March 5, 2018 Author Share Posted March 5, 2018 I think my original version accounted for that, but I attached an updated version that makes that logic more clear. Quote Link to comment Share on other sites More sharing options...
+Random Terrain Posted March 5, 2018 Share Posted March 5, 2018 Looks like it moves up or down to the new y position, then left or right to the new x position. It's really noticeable if you move it between two positions: vblank_2018y_03m_05d_1855t.bas vblank_2018y_03m_05d_1855t.bin 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.