Game Development Community

Request: Disable Entity Feature

by Matthew Harris · in iTorque 2D · 06/01/2009 (1:46 pm) · 1 replies

Hey,

Was playing around in iTGB today (the builder part). I was wondering if there could be a little checkbox on the top that would enable or disable the entity (ie static sprite, animated sprite, shape3d etc.)

I don't know how hard this would be to implement but it would be good if you want to do some testing to see whats causing some fps drops. Instead of deleting my player it would be good to just check the disable button and he either wouldn't get written to the scene for the iphone app and wouldn't show up in iTGBGame. Just an idea. If its easy to do go for it. If not oh well :P

- Matt

#1
06/02/2009 (6:46 pm)
Try
if ($platform $= "iPhone")
   %this.setEnabled(false);