forums

TNT Basic Forums > Programming Q&A
polygon collision?
< Last Thread     Next Thread >
Author
Thread        Post A Reply

12-05-2002 07:32

Posted by:
JAS

Click Here to Email JAS   Find more posts by JAS

Yeah - I'm having trouble with collision detection - please help if you can.

What command do I use to check if a sprite and a polygon have collided? And how do I address a polygon layer? I named it, but how do I call on it by it's name and have the program recognize it?

Thanks in advance!

12-05-2002 13:30

Posted by:
jamie

Find more posts by jamie

tutorial

sounds like we could all use a tutorial on polygons and collision detection, if there is anyone out there who would be interested in putting one together I think you'd be a hero!

:)

12-05-2002 13:48

Posted by:
JAS

Click Here to Email JAS   Find more posts by JAS

I totally agree!!! ;)

12-06-2002 02:05

Posted by:
eLL

Click Here to Email eLL   Find more posts by eLL

true


I agree as well...


but then again If i could just get my question answered....
http://www.tntbasic.com/community/forums/showthread.php?threadid=416

12-06-2002 03:05

Posted by:
Patrick

Click Here to Email Patrick   Find more posts by Patrick

"In Map Polygon", perhaps?

http://www.tntbasic.com/learn/help/commands/inmappolygon.htm

I would assume you could just test various coordinates of your sprite against the polygon to check for collision?

12-06-2002 04:32

Posted by:
JAS

Click Here to Email JAS   Find more posts by JAS

It's not just that, but the whole of collision detection and gravity that I don't get. And how would i apply the contents of that link you sent to my code.

I'm usually pretty bright with these things, but I'm just too dense for this lately... :)

12-06-2002 12:57

Posted by:
jamie

Find more posts by jamie

collision

and not only using polygons, but what is more effecient, polygons or testing for individual tile collisions... lots of possible options.

12-08-2002 00:26

Posted by:
JAS

Click Here to Email JAS   Find more posts by JAS

I've decided to take the high road and prostitute my art as a bribe to maybe get Jamie - creator of penguin power - to write or help out with writing a collision detection tutorial. :)

Let's hope it works!

My site, in case someone else sees this post and is interested, http://www.sinthesisent.com

12-09-2002 03:37

Posted by:
jamie

Find more posts by jamie

Oh great, now I've been put on the spot!!!

:)

The collision detection in Penquin Power! was tile based not polygon based, but if your really interested in a little tutorial on what I did there I'll see what I can get together.

No bribes necessary!

:)

12-09-2002 06:43

Posted by:
eLL'

Click Here to Email eLL'   Find more posts by eLL'

excellent

thanks.

12-09-2002 21:01

Posted by:
Mark Tully

Find more posts by Mark Tully

Previous posts

Have you seen this previous thread?

http://www.tntbasic.com/community/forums/showthread.php?threadid=149

I can expand on this if necessary.

Hope this helps!

Mark

12-10-2002 02:34

Posted by:
JAS

Click Here to Email JAS   Find more posts by JAS

I took a look at it and tried to apply it to my code, but i got nothing. I don't know about the other guys that are having a hard time figuring this one out, but I'm just not understanding the thoery of it. And I have no idea how to set it up, but I think that understanding the theory (or formula) is the most important part.

Thanks for offering your help, btw!

12-12-2002 05:44

Posted by:
jamie

Click Here to Email jamie   Find more posts by jamie

sprite to map tile collistion tutorial

I have posted the tutorial here:

www.clay-communications.com/jamie/files/sprite_tile_collision_tutorial.sit

check it out and let me know what you think.

12-14-2002 14:34

Posted by:
Toast

Click Here to Email Toast   Find more posts by Toast

Colored Dots??

Thanks for the great tutorial on collision, but I'm new to TNT and would like some explanation for the object editor under the maps tab. How do you get the dots to represent an object? I changed the color of the dot and the object was still the same object. I changed the name and the object was still the same object. Those are the only two optins when you create a DOT. I can't quite get the connection as to what the dots mean and how to use them.

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.