How did you make your game bg blue? Mines black and I'm having a difficult time seeing the healthbars, I can see the numbers and that they bars themselves are functional but can't see the rectangular label the numbers are sitting on.
public class EnemyAI : MonoBehaviour { public Transform target; public int moveSpeed; public int rotationSpeed; private Transform myTransform; void Awake(){ myTransform = target; } // Use this for initialization void Start () { GameObject go = GameObject.FindGameObjectsWithTag("Player"); } // Update is called once per frame void Update () { }
This is for everybody that doesn't get a line... You don't see it because your in game view! I had the same problem! I went into scene view and the line was there!!!!!! Don't look in game vie it wont be there. if you want to actually see the line go into scene view! That is the problem... (:
Okay This Pisses Me Off Bad At This Point, I Got It To Work Before, Not Anymore, I Couldn't Make It Rotate Right So I Started A New Script, Deleted Old One, Now I'm To The Point Of The Line, Wont Work, I Have Exactly What Yours Says.
@0oLasseo0 the nullreference means that you are trying to access something that does not exist in game. Check to make sure that everything is spelled the right way and has everything connected in the inspector like it should.
@BurgZergArcade i have the same problem as 0oLasseo0 and i've checked everything and nothing is wrong from the video so is the line really needed? bc i can't get it in there!!! Please help!!!
hi my name is colll78 and me and my friend franko98 are making a MMO-RPG and we would love you to check out our channel just check out our progress also if you are an expierenced coder or modeler we would love you to comment and we will contact you advertise for our channel and please rate and subscribe
The line only appears in Debug mode. For those of you not seeing a line you have to press "pause" first, then "play". Unfortunately Mr. BurgZerg didn't include that in the video.
Everytime i open a script in MonoDevelop, i get an warning that Tutorial.sln(8) is unsupported or unrecognized. Is there a way to prevent this from showing up ?
I also have a problem with opening scripts by double-clicking, it opens Mono, but not the script. I tried reïnstalling Unity and Mono, but nothing works.
Never mind... Seems that I selected FindGameObjectsWithTag (as in multiple objects array) rather then the FindGameObjectWithTag (singluar object). For some reason I couldn't see it.
This is odd. I have the EnemyAI.cs identical to what you show here, but when I drag it onto the "Evil Cubie" I get a Unity message saying [ Can't add script behavior EnemyAI. You need to fix all compile errors in all scripts first! ] and it is being cause by lines 17 & 19. (Found by commenting out till it worked, because there are no actual compile errors?!.) I am running Unity 3.3 and the included MonoDevelop.
@ottarsss you have a type somewhere. start by looking at the line where the error occurs, and then move up one line at a time. NOTE: I said move up a line as in the line before the one where the error is reported.
Can you please help me, i have monodevelop for windows, i realy like it, but everytime i double click a script in my script folder, it reopens monodevelop, is there a way to make it only use one window, and that if you press your script it opens the same window like your monodevelop does
@BurgZergArcade I found it out myself, i'm only posting it here so other people might profit. i had to use the one that came with unity, what i didn't knew. so i downloaded monodevelop and unity and than edited the preferences to that monodevelop, but i should have used the one that is in the unity folder. now everything works fine, having some trouble with the scripts at tutorial 19, but i think i'll figure that out
@runetimon lad to hear you are getting the hang of things. Starting out can be hard. Unity does ship with a special version MonoDevelop (at least on the mac, for windows I use VS) that should be used over the one you can download off the MonoDevelop site.
Can't Drag :'( says: Assets/Scripts/NewBehaviourScript.cs(9,27): warning CS0414: The private field `EnemyAI.myTransform' is assigned but its value is never used
i cant drag the script to the evil cubie , it says" Script EnemyAI has not finished compilation yet.Please wait until compilation of the script has finished and try again." HELP!
@BurgZergArcade can you tell me what things i can't do in javascripts? i'm just staring learning unity and don't want to learn something what will be usefull...
Is there a website where I can understand what things are and how they work? (Things like "void" "Debug" "//" etc.) Your tutorials are good, and they help me to understand what to do. I just don't understand what the things mean. xD
@HumanLies I gave a link to the files in the last reply. The error you are getting is because you are trying to access something that does not exist yet.
So when finish the DrawLine part, the line connects from the cube to the player, however the point of the line at the player keeps moving down and under the player. When incorporating the actual move forward commands, the cube moves towards me, but follows the down moving point so it goes under the player. Any Solutions?
hey, im having trouble with monoDevelop, firstly when i go to assets i only have sync visual studio project and secodnly how do you get the predicted text for untiy commands? for example when you go to write .FindGameObjectWithTag thanks! loving the tutorials so far great help!
@mattcscz In Unity 2.61, it uses Visual Studios to create the project files. You can use the files it creates with MonoDevelopment, or Visual Studios on Windows if you like. Once you have Unity create the project files for your, just open the solution file and the intella-sence should work out of the box.
@Dudehell1 Still encoding. It appears that it will be ready in about 1.5 hours. Then the rest is up to YouTube. Part 4 is broken up in to 3 parts as it ran over 20 mins and You tube only lets me upload 10 minute videos.
Check my video! We are making a nice game , AND YES! you can join helping!
ExalGames 2 days ago
How did you make your game bg blue? Mines black and I'm having a difficult time seeing the healthbars, I can see the numbers and that they bars themselves are functional but can't see the rectangular label the numbers are sitting on.
alibisbystorytellers 4 days ago
When you write anything about Unity, the MonoDevelop autocomplete you. things like GameObject, Transform.
How to do that? Only works for ProVersion of unity?
brunot93 1 month ago
@brunot93 Tap the TAB key when it shows up the choice menu.
ChippiesChips 6 days ago
gray, green grey speeled differently i laughed really hard
swimtastik77 1 month ago
it gives me:Assets/Scripts/EnemyAI.cs(17,28): error CS0029: Cannot implicitly convert type `UnityEngine.GameObject[]' to `UnityEngine.GameObject'
what should I do?
WildTiger18188 1 month ago in playlist Unity3d Tutorial - Hack & Slash RPG Part 1-200
@WildTiger18188 looks like you have a type there.
BurgZergArcade 1 month ago
@WildTiger18188 you have set it to 'GameObject.FindGameObjectsWithTag'
Make sure that it is 'FindGameObjectWithTag' notice the word 'Object' has no 's' on the end.
CooseStudios 1 month ago
@WildTiger18188 You put "FindGameObjectsWithTag" instead of "FindGameObjectWithTag"
Quewz 1 month ago
im getting : UnassignedReferenceException: The variable target of 'EnemyAI' has not been assigned.
You probably need to assign the target variable of the EnemyAI script in the inspector.
EnemyAI.Update () (at Assets/Objects/classes/EnemyAI.cs:25)
anyone know what this means?
tonythedemon 1 month ago
i dont have C sharp i have C# is that the same?
tonythedemon 1 month ago
@tonythedemon Ya
vailmaster5 1 month ago
dude, thanks in advance, but I'm getting
Assets/Scripts/EnemyAI.cs(15,20): error CS0029: Cannot implicitly convert type `UnityEngine.GameObject[]' to `UnityEngine.GameObject'
what should I do?
seasidekai 2 months ago
@seasidekai using UnityEngine;
using System.Collections;
public class EnemyAI : MonoBehaviour { public Transform target; public int moveSpeed; public int rotationSpeed; private Transform myTransform; void Awake(){ myTransform = target; } // Use this for initialization void Start () { GameObject go = GameObject.FindGameObjectsWithTag("Player"); } // Update is called once per frame void Update () { }
}
seasidekai 2 months ago
@seasidekai
You are calling the "FindGameObjectsWithTag" function and NOT the "FindGameObjectWithTag" function. The difference is subtle but important :)
megasnegl 1 month ago
Thanks for this tutorial! It was clear and understanding! Great job!! :D
LukaKotar 2 months ago
This is for everybody that doesn't get a line... You don't see it because your in game view! I had the same problem! I went into scene view and the line was there!!!!!! Don't look in game vie it wont be there. if you want to actually see the line go into scene view! That is the problem... (:
theofficialrythmic 3 months ago in playlist Unity3d Tutorial - Hack & Slash RPG Part 1-200
Okay This Pisses Me Off Bad At This Point, I Got It To Work Before, Not Anymore, I Couldn't Make It Rotate Right So I Started A New Script, Deleted Old One, Now I'm To The Point Of The Line, Wont Work, I Have Exactly What Yours Says.
SRGIRASHKAcodes 3 months ago
Could you please explain what Quaternion is and how it is used ? thanks
jordannw2010 4 months ago
@EdgeSphere Who said they cost $10?
BurgZergArcade 4 months ago 7
I am at about 9 minutes into the video and the debug.drawline isn't showing up. I get this error: "NullReferenceException
UnityEngine.Transform.get_position () (at C:/BuildAgent/work/842f9557127e852/Runtime/ExportGenerated/Editor/UnityEngineTransform.cs:19)
EnemyAI.Update () (at Assets/My Scripts/EnemyAI.cs:25)" what should i do? Thanks in advance. :)
0oLasseo0 4 months ago
@0oLasseo0 the nullreference means that you are trying to access something that does not exist in game. Check to make sure that everything is spelled the right way and has everything connected in the inspector like it should.
BurgZergArcade 4 months ago
@BurgZergArcade i have the same problem as 0oLasseo0 and i've checked everything and nothing is wrong from the video so is the line really needed? bc i can't get it in there!!! Please help!!!
rebellRR8 4 months ago
@BurgZergArcade i have that error too... Im checking the spelling but... i think its everything like you... :( i dont know... :(
AlvaroCorcin 1 month ago
lol....wierd way to end the vid....a phone cal...hahaha
brenttauro 4 months ago
fixed it player's was un capitalized in the qoute targeting script
earlydeath3 4 months ago
mine wont target
earlydeath3 4 months ago
how can i make it so the enemy cant go through objects with the mesh collider on?
XDGabzXD 5 months ago
This has been flagged as spam show
hi my name is colll78 and me and my friend franko98 are making a MMO-RPG and we would love you to check out our channel just check out our progress also if you are an expierenced coder or modeler we would love you to comment and we will contact you advertise for our channel and please rate and subscribe
colll78 6 months ago
the evil cubie fly´s away -.-"
Metinserver24 6 months ago
The line only appears in Debug mode. For those of you not seeing a line you have to press "pause" first, then "play". Unfortunately Mr. BurgZerg didn't include that in the video.
kxmode 6 months ago
@kxmode
Thanks !!! I was looking how to do this!!!
tsolias26 6 months ago
Stupid phone! :/
lolypopboy777 6 months ago
My monodevelopment isnt is workinng D:
thesmokeybos 6 months ago
is line 26 of your CSharp (the Debug.Drawline)
is it important? I can't get it right. it keeps saying that line is wrong
93lpsa 7 months ago
Everytime i open a script in MonoDevelop, i get an warning that Tutorial.sln(8) is unsupported or unrecognized. Is there a way to prevent this from showing up ?
I also have a problem with opening scripts by double-clicking, it opens Mono, but not the script. I tried reïnstalling Unity and Mono, but nothing works.
Do i need an older version of Unity ?
Matthie101 7 months ago
The target isn't Working my line is target = go.transform;
Noobularkid 7 months ago
or the target Help :\
bossrdt 7 months ago
i have a problem... i made the script has you said but i cant define the speed or rotation speed :\ help
bossrdt 7 months ago
i did exactly as you did but i didnt get a line beetween my enemy and me player
40paschal 7 months ago
VAGITA!!! WHAT DOES THE SCANNER SAY ABOUT THE CHARACTERS MOVE SPEED?!!!
ITS OVER 9000!!!!!!!!!!!
WHAT OVER 9000!??? THAT CANT BE RIGHT!
PhenomenalHeadShot 7 months ago 2
@PhenomenalHeadShot - And then vegetable head gapes in awe as the scouter explodes :)
asifrockstar3000 7 months ago
hi is there any way to make it not jump when the player jumps? I need too know because im making a zombie game and i need it too not jump.
thecomputerman12121 8 months ago
@thecomputerman12121 Sure is. You make it do what ever you want.
BurgZergArcade 8 months ago
@BurgZergArcade Your no help. :D
jiddabug21 6 months ago
Never mind... Seems that I selected FindGameObjectsWithTag (as in multiple objects array) rather then the FindGameObjectWithTag (singluar object). For some reason I couldn't see it.
Roguedeus 8 months ago
@Roguedeus Glad too see you found the typo.
BurgZergArcade 8 months ago
This is odd. I have the EnemyAI.cs identical to what you show here, but when I drag it onto the "Evil Cubie" I get a Unity message saying [ Can't add script behavior EnemyAI. You need to fix all compile errors in all scripts first! ] and it is being cause by lines 17 & 19. (Found by commenting out till it worked, because there are no actual compile errors?!.) I am running Unity 3.3 and the included MonoDevelop.
Roguedeus 8 months ago
Assets/scripts/enemyAI.cs(11,12): error CS1519: Unexpected symbol `void' in class, struct, or interface member declaration
plz help ive gone over the script in the vid and it is exactly the same but still a error
ottarsss 8 months ago
@ottarsss you have a type somewhere. start by looking at the line where the error occurs, and then move up one line at a time. NOTE: I said move up a line as in the line before the one where the error is reported.
BurgZergArcade 8 months ago
Ok i have 1 problem, i have the latest Unity , witch is way past this and nothing is the same
MurlockMage 8 months ago
@MurlockMage It should still all work the same.
BurgZergArcade 8 months ago
Can you please help me, i have monodevelop for windows, i realy like it, but everytime i double click a script in my script folder, it reopens monodevelop, is there a way to make it only use one window, and that if you press your script it opens the same window like your monodevelop does
runetimon 9 months ago
@runetimon I am afraid I have no idea what is wrong. Mine does not behave like that.
BurgZergArcade 9 months ago
@BurgZergArcade I found it out myself, i'm only posting it here so other people might profit. i had to use the one that came with unity, what i didn't knew. so i downloaded monodevelop and unity and than edited the preferences to that monodevelop, but i should have used the one that is in the unity folder. now everything works fine, having some trouble with the scripts at tutorial 19, but i think i'll figure that out
runetimon 8 months ago
@runetimon lad to hear you are getting the hang of things. Starting out can be hard. Unity does ship with a special version MonoDevelop (at least on the mac, for windows I use VS) that should be used over the one you can download off the MonoDevelop site.
BurgZergArcade 8 months ago
it keeps giving me the error " Assets/Scripts/EnemyAI.cs(31,9): error CS1525: unexpected symbol `}' expecting `;' "
help somebody plz?
iwilleaturtacos 9 months ago
@iwilleaturtacos You have a typo. Check your script.
BurgZergArcade 9 months ago
"PLZ HELP ME" PLZ Link the script in description?? i beg!!
Thew00tofb00t 9 months ago
*HELP* i have copied the script perfectly and yet no line. please help.
TripleEffects 9 months ago
Is it absolutely necessary to have the player tagged as Player? Can I make the enemy attack multiple tags?
slayere23 10 months ago
Can't Drag :'( says: Assets/Scripts/NewBehaviourScript.cs(9,27): warning CS0414: The private field `EnemyAI.myTransform' is assigned but its value is never used
FunkyFrog14 10 months ago
can someone help me please i can't seem to see my LINE from the enemy to my player please HELP
DeadknowN 10 months ago
i cant drag the script to the evil cubie , it says" Script EnemyAI has not finished compilation yet.Please wait until compilation of the script has finished and try again." HELP!
mixinghoney 11 months ago
@mixinghoney Unity does this from time to time. Just shut unity down and restart it.
BurgZergArcade 11 months ago
PLZ PLZ PLZ can you make an scripting tutorial but not c# yet javascript
MohammadProductions 1 year ago
@MohammadProductions Only c# will work for some of the things we are going to do.
BurgZergArcade 11 months ago
@BurgZergArcade ahaaaa but i still really need a detailed tutorial series for C#
MohammadProductions 11 months ago
@BurgZergArcade can you tell me what things i can't do in javascripts? i'm just staring learning unity and don't want to learn something what will be usefull...
shaked41 11 months ago
Debug.DrawLine(target.transform.position, myTransform.transform.position);
Error=NullReferenceExeption
what to do ???
Ranec113 1 year ago
got a problem assets/script/EnemyA1.cs(4,25): error CS8025:parsing error
fotboll85 1 year ago
Is there a website where I can understand what things are and how they work? (Things like "void" "Debug" "//" etc.) Your tutorials are good, and they help me to understand what to do. I just don't understand what the things mean. xD
stctigers 1 year ago
@stctigers search for oracle java tutorials. Java is very close to c sharp (c#) and the words mean the exact same thing.
TheThomaswastaken 11 months ago
Uhhm why is there a "SuperSecret" script in the script folder? xD
TolSatha 1 year ago 9
@TolSatha If I tell you, it will not be a secret anymore now will it?
BurgZergArcade 1 year ago 29
@BurgZergArcade wow lol
basketballdude138 1 year ago
@TolSatha lol, I think what he means to say is that he can tell you but than he have to kill you
hakkematforf 1 year ago 4
I'm getting this error
NullReferenceException
UnityEngine.Transform.get_position () (at E:/BuildAgent/work/71ca6fec1b41cc30/Runtime/Export/Generated/BaseClass.cs:768)
EnemyAI.Update () (at Assets/Scripts/EnemyAI.cs:25)
HumanLies 1 year ago
@HumanLies You can get the scripts for the first 10 tutorials for free off of the website in the Educational section.
burgzergarcade[dot]com/educational/educational/free-tutorials/hack-and-slash-intro
BurgZergArcade 1 year ago
@BurgZergArcade I can't find them, just tell me the problem, I have the script copied down exactly as you have it.
HumanLies 1 year ago
@HumanLies I gave a link to the files in the last reply. The error you are getting is because you are trying to access something that does not exist yet.
BurgZergArcade 1 year ago
@BurgZergArcade I've got the same error can you please help me??
Ranec113 1 year ago
Comment removed
Azyzil 1 year ago
So when finish the DrawLine part, the line connects from the cube to the player, however the point of the line at the player keeps moving down and under the player. When incorporating the actual move forward commands, the cube moves towards me, but follows the down moving point so it goes under the player. Any Solutions?
agent576 1 year ago
@agent576 I have made the scripts from tutorials 1-10 free for all of the support. You can get them here:
burgzergarcade[dot]com/educational/educational/free-tutorials/hack-and-slash-intro
BurgZergArcade 1 year ago
@VictorDGAMER We cover only showing the enemy health when targeting a mob in a later tutorial.
The difference is that they are two different languages.
BurgZergArcade 1 year ago
@VictorDGAMER Just right click the script and you should be able to rename it.
BurgZergArcade 1 year ago
i have an error
(unexpected symbol "target")
zFuZzYFisHx 1 year ago
@zFuZzYFisHx this means that you are using a variable name that has not been assigned yet.
BurgZergArcade 1 year ago
That is the pro skin. You can also change the colors under the preferences.
BurgZergArcade 1 year ago
How did you change the program background colour?
wompag 1 year ago
what is the cube. i dont have waypoints or AI script and i have pro
dake222 1 year ago
@dake222 Was this response to a different video?
BurgZergArcade 1 year ago
@dake222 You don't know what a cube is, and you spent 1500 dollars on a pro game engine.
Kay there buddy.
HumanLies 1 year ago
@HumanLies i got the demo
dake222 1 year ago
hey, im having trouble with monoDevelop, firstly when i go to assets i only have sync visual studio project and secodnly how do you get the predicted text for untiy commands? for example when you go to write .FindGameObjectWithTag thanks! loving the tutorials so far great help!
mattcscz 1 year ago
@mattcscz In Unity 2.61, it uses Visual Studios to create the project files. You can use the files it creates with MonoDevelopment, or Visual Studios on Windows if you like. Once you have Unity create the project files for your, just open the solution file and the intella-sence should work out of the box.
BurgZergArcade 1 year ago
Hey, can anyone convert this to Javascript? I tried, but it doesn't seem to be working.
tsduv21 1 year ago
weres part 4 ?? :O im dieing to make the basic combat
Dudehell1 1 year ago
@Dudehell1 Still encoding. It appears that it will be ready in about 1.5 hours. Then the rest is up to YouTube. Part 4 is broken up in to 3 parts as it ran over 20 mins and You tube only lets me upload 10 minute videos.
BurgZergArcade 1 year ago
@BurgZergArcade ok :D cant wait
Dudehell1 1 year ago
@Dudehell1 lol. It looks like you have no choice but to wait.
BurgZergArcade 1 year ago
@BurgZergArcade Lol
Dudehell1 1 year ago
Glad you are enjoying it. Next week should be fun. We will start on the basic combat.
BurgZergArcade 1 year ago
Was looking forward for this third part.
Great job, thanks a lot for these once again! =)
septien 1 year ago