nvlgun1996 Posted October 28, 2023 Share Posted October 28, 2023 Hi guys, i have a little problem with que collision check in my project. On my minikernel i put both players together, this activated the collision check, but i want check the collision only outside of minikernel. how i can do it? Quote Link to comment https://forums.atariage.com/topic/356102-how-ignore-the-collision-between-objects-on-minikernel/ Share on other sites More sharing options...
+Karl G Posted October 28, 2023 Share Posted October 28, 2023 I can't think of an easy way to avoid this; either the collision register gets activated or it doesn't, there's no chance to check it in bB code before your minikernel code has already run. It sounds like this is your own custom minikernel, though? In that case, you can check for collision in your minikernel and set a bit in one of your bB variables, and use that to determine if that particular collision has occurred in your bB code. A bit klunky, but it should work. 1 Quote Link to comment https://forums.atariage.com/topic/356102-how-ignore-the-collision-between-objects-on-minikernel/#findComment-5339577 Share on other sites More sharing options...
freshbrood Posted October 30, 2023 Share Posted October 30, 2023 On 10/28/2023 at 12:39 PM, nvlgun1996 said: Hi guys, i have a little problem with que collision check in my project. On my minikernel i put both players together, this activated the collision check, but i want check the collision only outside of minikernel. how i can do it? Maybe check to see if colliding object is NOT <p0x-2 or >p0x+2 and NOT <p0y-2 or >p0y+2 ? Quote Link to comment https://forums.atariage.com/topic/356102-how-ignore-the-collision-between-objects-on-minikernel/#findComment-5340270 Share on other sites More sharing options...
nvlgun1996 Posted October 30, 2023 Author Share Posted October 30, 2023 On 10/28/2023 at 5:24 PM, Karl G said: I can't think of an easy way to avoid this; either the collision register gets activated or it doesn't, there's no chance to check it in bB code before your minikernel code has already run. It sounds like this is your own custom minikernel, though? In that case, you can check for collision in your minikernel and set a bit in one of your bB variables, and use that to determine if that particular collision has occurred in your bB code. A bit klunky, but it should work. you mean change a variable when on minikernel? i did it before but not works 😕 Quote Link to comment https://forums.atariage.com/topic/356102-how-ignore-the-collision-between-objects-on-minikernel/#findComment-5340441 Share on other sites More sharing options...
nvlgun1996 Posted October 30, 2023 Author Share Posted October 30, 2023 7 hours ago, freshbrood said: Maybe check to see if colliding object is NOT <p0x-2 or >p0x+2 and NOT <p0y-2 or >p0y+2 ? you mean check the colision via position variables? 1 Quote Link to comment https://forums.atariage.com/topic/356102-how-ignore-the-collision-between-objects-on-minikernel/#findComment-5340442 Share on other sites More sharing options...
+Karl G Posted October 30, 2023 Share Posted October 30, 2023 2 hours ago, nvlgun1996 said: you mean change a variable when on minikernel? i did it before but not works 😕 It should, so long as it is one of "your" variables, and not e.g. one of the tempX variables that bB will overwrite. Quote Link to comment https://forums.atariage.com/topic/356102-how-ignore-the-collision-between-objects-on-minikernel/#findComment-5340515 Share on other sites More sharing options...
+Karl G Posted October 31, 2023 Share Posted October 31, 2023 @nvlgun1996 I just had another thought. I assume that the collision is occurring because you are overlapping the player objects in your minikernel to e.g. get more than one color per line. However, since hardware collision on the Atari 2600 is pixel-perfect, if you make sure that the overlapping players don't have any pixels in common, then no collision should be detected. There won't be any visible different anyway since the overlapping pixels of P1 would end up getting covered-up anyway. Does that make sense? 1 Quote Link to comment https://forums.atariage.com/topic/356102-how-ignore-the-collision-between-objects-on-minikernel/#findComment-5341093 Share on other sites More sharing options...
+Gemintronic Posted October 31, 2023 Share Posted October 31, 2023 I'm not sure if I'm understanding your usage of the term "mini kernel" Are you talking about batari BASIC mini kernels like 2playerlives.asm or the multi sprite kernel or what? In any case, if yer mashing hardware sprites together built in routines are out. You should probably make your own soft collision routines (i.e. check bounding boxes) Quote Link to comment https://forums.atariage.com/topic/356102-how-ignore-the-collision-between-objects-on-minikernel/#findComment-5341106 Share on other sites More sharing options...
nvlgun1996 Posted November 1, 2023 Author Share Posted November 1, 2023 13 hours ago, Karl G said: @nvlgun1996 I just had another thought. I assume that the collision is occurring because you are overlapping the player objects in your minikernel to e.g. get more than one color per line. However, since hardware collision on the Atari 2600 is pixel-perfect, if you make sure that the overlapping players don't have any pixels in common, then no collision should be detected. There won't be any visible different anyway since the overlapping pixels of P1 would end up getting covered-up anyway. Does that make sense? i see...my objective is make the player0 alongside player1, this is possible without overlapping pixels...i will try this, thanks for this tip 2 Quote Link to comment https://forums.atariage.com/topic/356102-how-ignore-the-collision-between-objects-on-minikernel/#findComment-5341414 Share on other sites More sharing options...
nvlgun1996 Posted November 1, 2023 Author Share Posted November 1, 2023 (edited) i see...my objective is make the player0 alongside player1, this is possible without overlapping pixels...i will try this, thank you Karl G for this tip Edited November 1, 2023 by nvlgun1996 Quote Link to comment https://forums.atariage.com/topic/356102-how-ignore-the-collision-between-objects-on-minikernel/#findComment-5341415 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.