Minor Enemy Tank AI
I'm am making a minor Tank game and i have created a full working game with terrain and all that but I want to make it more interesting with some enemy AI tanks that follow a set path and shoot objects...
View ArticleLaser Obstacle Course
I'm trying to make a first person obstacle/puzzle game where the player goes through various levels avoiding obstacles, jumping on platforms etc. I had an idea to add lasers you need to avoid and if...
View ArticleStop and start audio using c#
Hi so I have a disco in a game that plays music and I have speakers around the room that I want the audio to source from. However, I wanted to set up a DJ booth where you can change the song playing...
View ArticleInstantiate Prefab Error
In my game I have a simple trip wire which is activated when my player enters the trigger area. As to test my tripwire because I'm only in Alpha, I wanted it to spawn my basic enemy AI prefab but it...
View ArticleAnimation/Animator problems
I am trying to make a basic melee weapon swing when I left click. I wrote a short script to try and get it working: if (Input.GetButtonDown("Fire1")) { //Attack animation...
View ArticleRaycast/Melee Attack Help Please!
Okay so I'm making a melee weapon script that uses a raycast to get the distance from you to the enemy and when the enemy comes within distance and the player clicks, it does damage to the enemy. i'm...
View ArticleConverting Melee Raycast from Java to C# Problems
I had a script written in Javascript for a melee attack system that I want to convert to C# but now I have these errors. Help! Error CS1620: Argument '3' must be passed with the 'out' keyword (CS1620)...
View ArticleConvert from javascript to c#
Hi can anyone help me convert this code from javascript to c#? I tried myself but couldn't figure out what to replace "var rotation" at the start with :/ Thanks var rotation =...
View ArticleMultiple Animations
I'm making a maze in Unity and within my maze I have walls that move.. These walls are placed inside hallways or whatever and they have have a random determined time to open and then another random...
View ArticleGet texture from terrain.
I was wondering if there was a way to get what texture painted onto the terrain the player is walking on? I made a few scripts to play different footstep sounds determined by the terrain the player is...
View ArticleKeeping variables and bools across scenes
I've been looking everywhere to find a solution to my problem but I can't find it anywhere. I have a first-person game with a custom character controller script etc. which also has a fully functioning...
View ArticleFramerate Drop With Objets
So I have a horror game where I have just started creating the environment and I just added the trees (there are lots) and now it gets an average of 20-30fps which is terrible. It had almost 300+...
View ArticleRendering FBX with multiple animations
I couldn't find a question that fixed my situation so I'll just make one here. I'm making a simple horror game for school in which I've modeled a biped villain, rigged him and added biped animations...
View ArticlePlayer Health Goes Down Too Fast/Too Much
I wrote a simple Enemy AI script where when the player is in range, it will do 20 damage to the player and the enemy would stop until his attack cool down was complete. However, when void DoDamage()...
View ArticleNullReferenceException in game build
I just built my first person horror game and upon a quick playthrough, when I reach the second level, the camera cannot move up or down but everything else can happen. When I went back to Unity to see...
View ArticleEnemy won't collide with walls using transform.Translate
I have an enemy that rushes towards the player inside a small room (game is 2d). The enemy is a cube and has a child cube that acts as it's collider for me. When the enemy runs past or through the...
View Article