Hi there,
I’m new to Unity, C# and game dev, though not new to programming and I know Javascript well. I also know PHP well so C# seems easy to pick up, and I’m guessing C# is the preferred language to code with in Unity but I’ll figure that out eventually. I’m really enjoying getting more experience under my belt so that I can make a pretty ambitious game eventually. To start I’m just going to make a couple simple games and have started one which I’ve broken into 4 stages. The first stage will just be the player and an AI try to knock each other off the platform. The last one left wins.
My ultimate goal is to create a sort of procedurally generated, sandbox survival game with realistic, smooth and destructible/mineable terrain. I know lots and lots of people are doing that sort of thing but I don’t care. This is more of a hobby for the time being and I intend to keep working on it as long as I live. I have some interesting ideas and have friends with interesting ideas. I used to run a Minecraft server and a 7 Days to Die server so this is why I want to make this sort of game. I’ve coded several Minecraft/Bukkit plugins as well. That’s the kind of game I want to make because that’s the kind of game my friends and I want to play. I will do it, it’s only a matter of time until it becomes playable. I will not be swayed and I will not give up. I’m already playing it in my mind =)
I’ve looked through a whole bunch of assets on the asset store but I’m just not sure exactly which ones to use yet. Ideally they would have the source available too in case the developer ever disappears or whatever, and hopefully the asset also wouldn’t make things more complicated in the long run like playMaker might. I haven’t bought any of them yet and I don’t have a lot of money to spend yet but would consider spending $100 or so on assets if they would help me create or would be required for this sandbox survival style game I’m going for. Do you have any suggestions I should take a look at or any absolute must haves? I spent so long looking through there I just don’t really have the experience yet to know what the best things are for what I’m attempting to do.
I found the free Standard Assets package and thought it would be a good place to start with the first simple game. I’ve managed to use the third person characters, AI and cameras from that and customized it a bit and created a character and an AI and I got the AI to follow me around and push me off the edge of the platform. I figured out how to make the camera lock to the y position instead of following me to my death. However I’m having a few issues and thought I should ask for some help.
I’ve discovered it’s probably best to use colliders instead of ray casting for the punches and knockback but I’m having trouble wrapping my head around which steps to take to implement a punch knocking the other character back, including the animation. I’m not sure if I should just attach a collider to the player and the AI character and try to use triggers somehow or really how to properly even do that or if I should somehow attach things to the animation somehow. Maybe I don’t even need an animation at this stage. I don’t really know what I’m even doing and can’t seem to find a good tutorial for that sort of thing. I probably could just use more sleep but I’m really enjoying figuring this stuff out and just can’t stop.
Also which is the best way to determine if the player or bot falls off the platform? I’ve managed to use Destroy(gameObject) in one of the scripts which appears to delete my character when I fall off but the AI still keeps moving around. Should I be doing something else like stopping the AI script from following my falling body somehow after the player dies since it won? I don’t understand why it’s even still trying to follow my body since it was destroyed. Maybe I didn’t actually destroy whatever it was actually following? Maybe it doesn’t matter when the game is over anyway. But in the next stage when I add more AI and in the final stage when I add multiplayer it will matter.
I’m attempting to detect it’s y position and if it goes below -50 it destroys it but would it be better to put a trigger volume below the platform?
Those might be all the things left to figure out for the first stage. Unless there are things I don’t know about that I will run into or think of when I have more sleep. I imagine I’ll have more questions for the next 3 stages. This first stage should at least be a playable game when it’s done anyway.
Thanks for reading if you got this far and for any help you can give!