Game Development Community

Breaking a Platform

by Jason Phillips · in Game Design and Creative Issues · 11/03/2011 (11:32 am) · 2 replies

I was wondering how in Torque2D (or iTorque2D really) how to have a platform game where the user can blow holes in a platform. Or maybe a digging game where there is solid dirt and the user digs out the dirt. If you start with a scene object covering an entire platform with collision support, can you just overlay a graphic breaking the platform visually and add a second scene object the size of the hole that somehow invalidates the collision on a lower level?

About the author

Professional developer 20+ years. Mobile Game developer hobbyist.


#1
11/04/2011 (7:15 am)
I don't really use that engine (much), but what I would do is replace the "functioning" platform with one or more "pieces" of platform, which can have their own collision or not (whatever you prefer). When the player does damage to the platform, you can then swap out the assets as you need to in order to reflect the changes in the platform. Hope that helps!
#2
11/04/2011 (12:13 pm)
Thanks. That is what I planned only it seemed like it would be alot of overhead. Basically if you were creating digdug then every tile would have to have it's own scene object with distinct collision settings.