lo folks,
Ive been working on my first reasonable scale project and it is a basic platform game. I have sussed out a good collision system for landing on and hitting the underside of platforms but detecting if the player hits the sides of them is more of a problem. The following code determines if the player is about to hit the left hand side of a platform and assigns it a hit_left value however it only seems to work for about 80% of the platforms in my test map. The remainder i can just pass right through. These platforms are consistent in their insolidity(is there such a word)on every run and are not related to the speed i try to run through them . Sorry for the length of the post but could someone help? im losing my sanity
REM detect contact with left side platform
for platform=1 to plat
cls
if player_height#>platform_y_coord#(platform)-10.0 and player_height#platform_x_coord#(platform)-13.0 and charposx#
Not-Mr-Thumpy wrinkled his nose, it was suddenly hard to concentrate