Re: Block- Man Script
Posted: Thu Jun 08, 2023 9:58 pm
I think what you after with this one:
Is actually:
For in original version you were checking X-postition instead of Y-position
Code: Select all
elseif Collision(#BRUSH, 1, BM_XPos, BM_YPos, 2, BL_Xpos, BL_Ypos ) = True and BM_Xpos >= BL_Xpos
BM_XPos, BM_YPos = BM_XPos, BL_YPos - 16 ; Handle collision with top side of obstacle
DebugPrint("Hit The Top Side")
EndIfCode: Select all
elseif Collision(#BRUSH, 1, BM_XPos, BM_YPos, 2, BL_Xpos, BL_Ypos ) = True and BM_Ypos >= BL_Ypos + 32For in original version you were checking X-postition instead of Y-position