Game Development Community

Tile Editing Collision Shape

by Jose A Anchondo · in iTorque 2D · 02/22/2012 (5:22 pm) · 6 replies

I'm building a tilebase game in iTorque, however I can't seem to edit the collision shape of individual tiles, they have the default square of the whole tile, is this possible at all in iTorque GameBuilder, i know in TorquePro GameBuilder you can do it.

#1
02/25/2012 (10:17 pm)
I'm having a problem with this myself. I can't seem to edit the collision poly of the tile at all. I've tried zooming my display way in to click on one of the corners but my mouse just doesn't seem to touch the polygon or yellow corners.

Anyone able to set me straight on how this is done in iTorque on the Mac?
#2
02/26/2012 (7:59 pm)
I just confirmed this isn't possible in iTorque2D but you can do this in Torque2D no problem (I tested it on the demo). See screenshots for what's going on here.

Is this a bug?

riptor.com/misc/polybad.pngriptor.com/misc/polyworks.png
#3
02/27/2012 (2:53 pm)
Perhaps it is designed that way in the iTorque version.

What I ended up doing is defining in the datablock file the polygon for the different tiles, and collision properties, and then I can add rather fast the collision to the tilemap. Luckly I had very simple shaped polygons in my tiles so it was fast... I still have to see how it does performance wise. But you can implement something like that until a better solution pops up...
#4
02/27/2012 (7:55 pm)
I was thinking I might edit the layers in TGB... I went ahead and bought it for a project :)
#5
02/28/2012 (1:48 pm)
Tilemaps made in TGB are not compatible with iTGB, you will not be able to load them into your iTGB.
#6
02/29/2012 (7:43 am)
Awww... sad face :(

I've honestly been playing so much with TGB I haven't gone back to my iPhone project. I'm anxiously waiting some news on iTorque1.5 though, let's hope we hear something soon :) When I do get back to my project I'll give your approach a try - my tiles are pretty simple too.