Cleaning Up Our Projectile - Lots of Destroying

Phew, lots of tying up loose ends in this video. Any questions or concerns?

I have implemented an object pool for the arrow, and will for fireballs aswell. Might be a consideration for others if they plan to do alot of instanciations and Destroy of instances.

1 Like

I finally caught up to the front of the course! Woah what an adventure I cant wait for the new episodes now… thanks for all your work Rick and Sam I am enjoying this course so much and have learned a ton!

1 Like

One bug I have noticed is if weapon you have is not homing the trail effect keeps going through the enemy (instead of finishing there) after the destroyOnHit object have been deleted. The same happens for the homing weapons on the last shot where the target dies the particles move forward. I reckon a fix for this is once the weapon has hit to set the remaining game objects that weren’t destroyed on hit to homing… interested to see with what you guys come up with!

And this one is not a bug but I think it would be nice for timeBetweenAttacks to be another part of the scriptable weapons instead of in the fighter class (so swords swing faster than pitchforks etc)

hope all this makes sense ask me if you need clarification :slight_smile:

Friendly Fire On!
I can see this having gameplay issues later on, like the player getting frustrated because there’s no way to secure a distant target that is surrounded by enemies but it also has the potential for some amazing “pro plays”.

5 Likes

Thanks for sharing with us!

1 Like

Reminds of Doom monsters infight. When monster shoots at player and other monster cathes bullet, they start to fight and ignore player.

1 Like

I found the pumpkin asset, so I thought it would be funny if our hero was throwing burning pumpkins. And then the target would be steaming hot after being hit with the fire pumpkin. The smoke goes away after a few seconds.

2 Likes

Pumpkin attack! Love it.

2 Likes

Played with blood effects and added fire hand using fireBall .

3 Likes

Well done!

Why do the discussions for some of the lectures go to a single thread rather than a board for that rpg lecture?

Some “talk topics” are seed questions planted by Rick, Sam, or sometimes me. Often those get more attention. There isn’t truly a “board” for any lecture, just tags.

There is a cool option in the Particle Effect Inspector that allows you to destroy a particle once the effect is completed. Works if not a child of a Game Object and the particle effect itself is the Game Object that is being directly instantiated.

image

Privacy & Terms