Brian's Man Cave Posted December 22, 2022 Share Posted December 22, 2022 Hey, For my venture game I seem to be having an issue with the collision detection. I am using a similar method to the example IntyPak game where it tries to look ahead to see if the path does not contain a graphic. The approach I am using seems to work sometimes. Here is a video showing what is happening, the monster sprite at the bottom goes through the wall : My code is as follows (Showing the going up check) if #r_mon_3 = 0 then 'Going up #col_chk6 = #backtab((X5-3)/8+((y5 % 256)-1)/8*20 - 20) if #col_chk6 = 0 then #mon_mov3 = 1 end if if #mon_mov3 = 1 then if #r_mon_3 = 0 then y5 = y5 - 1:#mon_mov3 = 0:if y5 <= 10 then y5 = 11 end if If anyone can assist, that would be great Thanks, Brian Quote Link to comment Share on other sites More sharing options...
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.