Cannon War
Posted: Tue May 06, 2008 9:51 pm
Hey everyone,
I've only used ZGameEditor for about a week and a half now but I like it a lot! So you can probably tell I'm still learning the ropes and to expedite the learning process I wanted to make one of those games where you have two cannons that are trying to shoot each other.
I actually ran into quite a bit of problems with this project, which is mainly why I'm posting this here; to seek help.
The problem I'm currently having is this: The cannonballs that are launched from the single cannon have a lifetime of 5 seconds. At the end of their lifetime, I want a really simple particle effect to take place. I tried rendering this effect in OnRemove of the BallModel but that didn't work. I'm now trying to Spawn a ParticleEffect model, which all it does should be to display the particle effect and then die, but that doesn't seem to work either. I made sure that the two components I use to render the particle effect work because when I put them under OnRender of the ZApp, it shows me the particle effect correctly at 0,0,0.
So I'm uploading my project file to this post and if anyone could take a look and tell me what I'm doing wrong, I'd be very grateful.
Thanks,
Yılmaz
I've only used ZGameEditor for about a week and a half now but I like it a lot! So you can probably tell I'm still learning the ropes and to expedite the learning process I wanted to make one of those games where you have two cannons that are trying to shoot each other.
I actually ran into quite a bit of problems with this project, which is mainly why I'm posting this here; to seek help.
The problem I'm currently having is this: The cannonballs that are launched from the single cannon have a lifetime of 5 seconds. At the end of their lifetime, I want a really simple particle effect to take place. I tried rendering this effect in OnRemove of the BallModel but that didn't work. I'm now trying to Spawn a ParticleEffect model, which all it does should be to display the particle effect and then die, but that doesn't seem to work either. I made sure that the two components I use to render the particle effect work because when I put them under OnRender of the ZApp, it shows me the particle effect correctly at 0,0,0.
So I'm uploading my project file to this post and if anyone could take a look and tell me what I'm doing wrong, I'd be very grateful.
Thanks,
Yılmaz