プレイ日記
Pikachu Squi-Volt
There's a problem here... I told the game to take damage if the pixel below the fish is spikes. I'm moving all around, touching the spikes, but still get no damage. Help?
0そうだね
プレイ済み
返信[1]
親投稿
PChicken NerdChicken
compliment: nice game; looks cool. suggestion: i need a screenshot of that bit of code to fully help you with that, there are SO many things that could be happening. just in case you don't give a screenshot: -it could be that you are literally checking one pixel under the fish -check if your fish can ever actually come into contact with the spikes with your collision and finally,
0そうだね
プレイ済み
返信[2]
親投稿
PChicken NerdChicken
-try using your wall collision code for your spikes. it could be that your code checking the spikes is completely wrong.
0そうだね
プレイ済み
返信[3]
親投稿
Pikachu Squi-Volt
This is the code for it.
0そうだね
プレイ済み
返信[4]
親投稿
V360 TheV360
Try using coordinates relative to the fish instead of absolute coordinates. DEF SPICHK DCHK=BGGET(2,X,Y+7,1) UCHK=BGGET(2,X,Y-7,1) LCHK=BGGET(2,X-7,Y,1) RCHK=BGGET(2,X+7,Y,1) IF DCHK==128 || UCHK==128 || LCHK==128 || RCHK==128 THEN HIT 1 END X and Y are your fish's X and Y coordinates.
0そうだね
プレイ済み