Posts Tagged ‘tutorials’

AI Update for Zombie Compound

Written by Charlie. Posted in Tutorials, Zombie Compound

I’ve been having a little more success playing around with Rain{Indie}. As the video below shows, I created a “companion”, that will follow the player around the world when he’s out on missions. It’s a dog model using Mecanim animations, screenshot below of that. It’s pretty simple, just using a speed parameter to do the run animation when it moves. Everything else is set up with Rain and I think it works pretty well.

mec_dog

One problem that I ran into and couldn’t find a lot of information on the net that explains how to fix it is preventing the dog from getting too close. It was a really simple fix though, just set the “close Enough Distance” in the AI’s path manager to a higher distance than it’s default. That let me make the dog stop a bit farther away from me when I stop.

Pretty happy with this simple thing, next step is to make it do more stuff, such as attack enemies and such. I’ll post more updates as I figure out more stuff.

Unity Asset Review: Rain {Indie} by RivalTheory

Written by Charlie. Posted in Tutorial Reviews, Unity Asset Store

For our game we’ve been trying to learn RivalTheory’s Rain {Indie} plugin, “the most powerful AI engine on Unity”. I don’t have a lot of experience with other AI plugins, but from what I’ve learned already it’s a pretty awesome plugin. Best of all, it’s 100% FREE. There isn’t just a free version and a paid version with more features, the entire thing is free. So there’s no reason you shouldn’t at least try it out.

There is a large community surrounding Rain as well, with a lot of awesome people making tutorials and putting them on youtube for free, which is nice because at the moment there isn’t a whole lot of tutorials for the beginner. I had to scour the net just to learn as much as I now know, and I still have a lot to learn.

I was able to make my enemy, a girl zombie, wait until it detects the player and then move to the character’s position, and it didn’t take long at all. Now I just have to figure out how to make the zombie deal and take damage, play the animations correctly, etc. TornadoTwins made a pretty sweet tutorial series dealing with Rain, but it’s linked to their FPS control project and uses a lot of scripts from that, which I’m not using for my game. Even if you’re not using FPS control, I suggest you watch the series and follow along as best as you can. I was able to learn a lot of the basics from them. I think it’s the 6th or 7th tutorial that they start using FPS control scripts, but that’s free too so if you want to keep following along you can free of charge.

walkingtowards

This picture shows the character moving towards me. It’s playing the animation correctly, which is awesome, and using Recast mesh it even avoids objects.
















stuck

Once the zombie catches me I want it to start biting, but I haven’t figured that out yet. I’m trying to use Mecanim animations, which Rain does support, but there isn’t a lot of tutorials out there for that.

Pretty much all the tutorials I see deal with making the character detect and move towards character, or move towards an object that you set. I’ve been reading through the Documentation and Wiki to try to figure out how to make it do what I want for the last few days, hopefully I’ll have something to show you guys soon.

If you want to download Rain Indie, head over to their website and try it out! Let me know how it goes.