forums

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

12-20-2001 19:10

Posted by:
MiniMe

Find more posts by MiniMe

Why doesn't this work?:
'Horiz Limit
if Map Tile(HeroX/32+1,HeroY/32,0)

int xTemp=HeroX/32
HeroX=xTemp*32
end if
if Map Tile(HeroX/32-1,HeroY/32,0)

int xTemp=HeroX/32
HeroX=xTemp*32
end if
'Vertical Limit
if Map Tile(HeroX/32,HeroY/32+1,0)

int yTemp=HeroY/32
HeroY=yTemp*32
end if

if Map Tile(HeroX/32,HeroY/32-1,0)

int yTemp=HeroY/32
HeroY=yTemp*32
end if

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.