TNT Basic Forums > Programming Q&A
Hill Collision
< Last Thread     Next Thread >
Thread        Post A Reply

02-24-2002 20:21

Posted by:

Find more posts by MiniU

I'm making a platformer and I have 32*32 tiles collision, but I want to have hills(Tiles that go "/") and my normal tile collison doesn't handle them and I want to use more precise collision so I use sprites. The code so far is like this:
iSprite=Sprite Col (1,400 to 599)
if iSprite <> -1
end if

Were iSprite is just an Integer to know which sprite the player collides with, HeroX and HeroY are the position of the player, HillX is the position of the hill and i is an integer.

The problem with this code is that when the player comes to the edge of a hill tile to another hill tile he jumps in the air. Can anyone help me?

All times are GMT        Post A Reply

Forum Jump:
< Last Thread     Next Thread >

< Contact Us - TNT Basic >

Powered by: vBulletin Lite Version 1.0.1 Lite
Copyright © Jelsoft Enterprises Limited 2000.