Page 1 of 1

how to create and kill a cube upon click on the screen?

Posted: 19 May 2016, 13:43
by kberraho
Hello all,

so I am trying to find a way to create a cube once I press a specific area of the screen, possibly using the Touch button node, as well as being able to click on a specific object like a cube and completely destroy it,kill it, not deactivate it, or block it. any feedback and suggestion would be much predicated. Thanks in advance.

Re: how to create and kill a cube upon click on the screen?

Posted: 19 May 2016, 14:01
by chriss0212
as long as you can not create objects during runtime you can not destroy them ;) it is not possible to change the hierarchy during runtime.

you need to block it!

greets

christian

Re: how to create and kill a cube upon click on the screen?

Posted: 19 May 2016, 14:19
by kberraho
I see, thanks for the explanation, so I assume that I need a cube in the hierarchy turned inactive at run time, and as soon as I trigger a pressed key on the screen it can register the location or coordinates, then assign them to the cube and finally activate it, and if want to destroy it, it will be as simple as deactivating the cube.right?

Re: how to create and kill a cube upon click on the screen?

Posted: 19 May 2016, 14:30
by chriss0212
jepp

Re: how to create and kill a cube upon click on the screen?

Posted: 19 May 2016, 14:55
by kberraho
Awesome !! thank you.