Explode missing from tutorial
by Andy Hawkins · in Torque Game Builder · 07/28/2006 (5:26 pm) · 12 replies
I'm doing this tutorial...
Shooter Tutorial
.. this bit of source code doesn't seem to work... in that there is no visual explosion - the ships just disappear. Is this a known issue or a bug, or is there a workaround? Is the .explode() function supposed to spawn particles - mind you I am only up to this page...
Shooter Tutorial
.. this bit of source code doesn't seem to work... in that there is no visual explosion - the ships just disappear. Is this a known issue or a bug, or is there a workaround? Is the .explode() function supposed to spawn particles - mind you I am only up to this page...
function playerShip::onCollision( %srcObj, %dstObj, %srcRef, %dstRef, %time, %normal, %contactCount, %contacts )
{
if(%this.isDead)
return;
if(%dstObj.class $= "enemyShip")
{
//%srcObj.explode();
%dstObj.explode();
}
}
#2
07/28/2006 (5:35 pm)
Yeah whats up with that I'm on the next page now and it's all missing...
#3
edit: not sure what's up with the placeholder images. If you really need the images, you could try using the shooter tutorial that's in the documentation directory of TGB. However, I'm not sure if that tutorial is exactly the same or not.
07/28/2006 (5:36 pm)
At the point your up to, all you should see is the ship disappear. I just had a quick flick through that tutorial just now, and although you've defined the explode function, all your doing is deleting the ship. When you go to the particles chapter, you'll be adding to the explode function your explosion. enjoy :)edit: not sure what's up with the placeholder images. If you really need the images, you could try using the shooter tutorial that's in the documentation directory of TGB. However, I'm not sure if that tutorial is exactly the same or not.
#4
07/28/2006 (5:39 pm)
Is it my duty as a fellow Torquian to edit this to complete the tutorial by adding the missing screen shots? *cue theme to Superman*
#5
07/28/2006 (5:40 pm)
Lol, if you have the time and your up for the task, I guess you could. And you know what the images should be ;) lol.
#6
07/28/2006 (6:14 pm)
Well I've almost completed that page and I've stumbled along fairly well because the text descriptions were spot on. From the looks of the placeholders though - the way they are planned out, it would seem that the author already has the images, they just haven't posted them. Anyone know who it is?
#7
07/28/2006 (6:32 pm)
I uploaded the last part of the shooter a while ago but didn't have the pics back then. I've gone through and redone _all_ the images in the docs, they'll be in the .pdf's with the next release of TGB (which is very super soon). Eventually the docs should be better synced with TDN...
#8
edit: lol nice timing Paul. My post is now redundant :D
07/28/2006 (6:33 pm)
If you scroll to the bottom, it shows who last edited it. In this case, it was "Paul /*Wedge*/ DElia". Whether or not he has the images, I don't know.edit: lol nice timing Paul. My post is now redundant :D
#9
07/28/2006 (7:13 pm)
Ahh yes, I've found the pdf's in the TGB folder, however my explosions and thrusters look nothing like the ones in the tutorial... why is that?
#10
07/29/2006 (3:16 pm)
There are trillions upon trillions of possible effects, using the same images. It may come out to be something like 100,000 to the 20th. Lol--- don't ask me how I got that, but sounds good, huh?
#11
08/05/2006 (10:59 am)
Why do you have //srcObj.explode(); commented out?
#12
08/05/2006 (5:12 pm)
@Richard - I was doing that to debug the script - so that only the enemies exploded, to try and find why I couldn't see the explosion. As usual I jumped the gun, and didn't read all the tutorial before whinging and moaning in a thread. I proceded to the next page and found the bit about adding particles - from that point the ship exploded as expected.
Torque Owner Kevin James
the function .explode() is a scripting bit, and if you haven't wrote a function called explode that's why you see nothing. It probably in the tutorial a little later. (very little later)