forums

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

01-19-2002 18:21

Posted by:
Tony Rose

Find more posts by Tony Rose

Ok,I know how to test for a collision between 1 sprite and another sprite. But I cant seem to figure out the (testsprite,tosprite,fromsprite) version. Isnt the purpouse of this version to shorten code alot,as in,I could use that version to test for a collision between all my bullet sprites instead of one at a time?. If so,how would I write code that would test for a collision between sprite 17(enemy plane) and sprites 3-14(bullets)?

01-19-2002 19:05

Posted by:
Jim

Click Here to Email Jim   Find more posts by Jim

Sprite Col

result = Sprite Col (17, 3 to 14)

and result will end up with the number of the sprite that 17 collided with (if it did collide; otherwise it will be -1)

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.