+Random Terrain Posted February 1, 2014 Share Posted February 1, 2014 I was using pfpixel to test something and I noticed that it didn't seem to be working right, so deleted everything I could to make this test program: aa_dpc_test_2014y_02m_01d_0509t.bin aa_dpc_test_2014y_02m_01d_0509t.bas Move the guy around and when you move left or right, a loop should draw pfpixels on the screen about 32 high, but that's not what happens. On the lower part of the screen, only one is drawn, and higher up different heights are drawn depending on how high up you go. Am I doing something wrong or is pfpixel messed up? Quote Link to comment Share on other sites More sharing options...
RevEng Posted February 1, 2014 Share Posted February 1, 2014 Your program has logic to skip the pfpixels loop if _Loop2>32, but you initialize _Loop2 as half of the player's Y. Therefore when the playery>64, the pfpixels loop is skipped. Which is pretty much what you described as the problem. Try doing something like this instead... _Loop1 = ((player0x-13)/4)-1 _Loop2 = 0 __Right_Loop y=_Loop2+(player0y/2) pfpixel _Loop1 y on I've also attached a pfpixels test, just for bonus points. dpcpfpixel.bas 1 Quote Link to comment Share on other sites More sharing options...
+Random Terrain Posted February 1, 2014 Author Share Posted February 1, 2014 Damn, I'm dumb. I must have looked at my code 20 times but I couldn't see what was staring right at me. Thanks, it works now. 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.