forums

TNT Basic Forums > Programming Q&A
Sprite Colision
< Last Thread     Next Thread >
Author
Thread        Post A Reply

11-11-2003 20:46

Posted by:
TransMetalBoba

Location:
CA

Find more posts by TransMetalBoba

hi. I'm a little fuzzy on how to check for sprite colisions. Lets say i had a sprite bullet with a index 0, and a space ship with a index 1, and i wanted to turn off both sprite when they hit each other how would i do that? thanks

11-11-2003 20:49

Posted by:
MapMaker

Location:
Edmonton, Alberta (Canada)

Click Here to Email MapMaker   Find more posts by MapMaker

Sprite Col

Sure, just put this code in your main loop or whenever you want to test when the two collide.

if (sprite col(0,1)) = 1
sprite off 0
sprite off 1
'Whatever else you want to happen
end if

Good luck with this.
MapMaker

11-11-2003 21:15

Posted by:
TransMetalBoba

Location:
CA

Find more posts by TransMetalBoba

thanks

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.