Level Editor Collision Polygon Issue
by Gina-Marie -Netjera- Hammer · in Torque Game Builder · 04/13/2006 (4:14 am) · 4 replies
Hi!
I just downloaded the latest Beta of T2D and I have to say I love it! I think that along with the flexibility and power the scripting engine provides, that the ability to throw things out and prototype very quickly will be invaluable!
That being said, I've been going through the Level Editor tutorial that's in the documentation folder. In the section titled, "Creating a Custom Collision Polygon" it says: "Begin clicking around the red portion of the sprite to form a circular collision polygon. When you are finished, press the enter key or click on the arrow tool up on the toolbar . When you re-run the program, you should notice that the collision happens now when the ball hits the asteroid ."
Okay. I'm having a problem here. I've created a custom polygon exactly as it says. I see the polygon surrounding the red area, however, here are some issues:
1) The enter key does nothing. :(
2) When I use the arrow key (the save key also works), it doesn't hold onto the new polygon. If I run the game, it still collides with the bounding box, instead of the polygon, and when I go back into the polygon editor, the polygon is gone. :(
I appear to be missing a step which actually saves the polygon. Anybody know how to do this, or what I'm doing wrong if it's something else?
Thanks a lot,
Net
I just downloaded the latest Beta of T2D and I have to say I love it! I think that along with the flexibility and power the scripting engine provides, that the ability to throw things out and prototype very quickly will be invaluable!
That being said, I've been going through the Level Editor tutorial that's in the documentation folder. In the section titled, "Creating a Custom Collision Polygon" it says: "Begin clicking around the red portion of the sprite to form a circular collision polygon.
Okay. I'm having a problem here. I've created a custom polygon exactly as it says. I see the polygon surrounding the red area, however, here are some issues:
1) The enter key does nothing. :(
2) When I use the arrow key (the save key also works), it doesn't hold onto the new polygon. If I run the game, it still collides with the bounding box, instead of the polygon, and when I go back into the polygon editor, the polygon is gone. :(
I appear to be missing a step which actually saves the polygon. Anybody know how to do this, or what I'm doing wrong if it's something else?
Thanks a lot,
Net
About the author
Art, Games, Life www.netjera.com See my in-progress website and game design work at: www.netjersoft.com!
#2
04/13/2006 (5:46 am)
Thanks a lot. I'll give that a try and see if it works. There are a couple of other similar things I've noticed. For instance, if you're in a dialog box (such as the X,Y coordinates for velocity) and you type in a number without tabbing or clicking in another box, the value doesn't "take". Odd. I've already started developing the habit of tabbing to the next area just to be sure my values are officially in the dialog boxes. :D
#3
Reading through the reference it seems like I can specify the number of edges in script but in the level editor it's only 4 or more?
And when you change values in a dialog box, you can type the number in and hit enter and it will take effect. As you noticed, tabbing or clicking on another field does the same thing.
04/13/2006 (7:42 am)
I have been able to create custom collsion polygons and have them save when clicking on the arrow key in the toolbar. The enter key is broken though. I did notice them not saving for triangle shapes if I had only 3 points, for custom polygons the triangle needed 4 points.Reading through the reference it seems like I can specify the number of edges in script but in the level editor it's only 4 or more?
And when you change values in a dialog box, you can type the number in and hit enter and it will take effect. As you noticed, tabbing or clicking on another field does the same thing.
#4
I wonder why the arrow key doesn't work for me? I've been outlining a circle, and just now I tried a tree in that flying rodent game you make in the tutorial (I thought I'd see i I could get the "chow" to collide with the tree). It wasn't saving the polygon when I did the circle, but I was able to get the whole thing enclosed by points after some messing around. Now, though, it's not letting me form a collision polygon around the entire tree.
04/13/2006 (5:18 pm)
Is there a limit to the number of points you can use in a collision polygon? I try to outline things closely and when I get beyond a certain number, I have to stretch things around to add more points, or I seem unable to add them at all.I wonder why the arrow key doesn't work for me? I've been outlining a circle, and just now I tried a tree in that flying rodent game you make in the tutorial (I thought I'd see i I could get the "chow" to collide with the tree). It wasn't saving the polygon when I did the circle, but I was able to get the whole thing enclosed by points after some messing around. Now, though, it's not letting me form a collision polygon around the entire tree.
Torque Owner Philip Mansfield
Default Studio Name