Skip to main content

059. Unity3d Tutorial - Building My Starter Town

See video

We continue with another tutorial in our Hack And Slash demo made with the Unity3d Game Engine.

In this video, I start adding some prefabs that I have to create the base for my starter town.

Tags:

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Offline
Joined: May 8 2011

go to turbosquid.com for some cool free and paid models

Offline
Joined: May 23 2011

Hi. I got an error:
NullReferenceException: Object reference not set to an instance of an object
TargetMob.DeselectTarget () (at Assets/Scripts/TargetMob.cs:81)
TargetMob.TargetEnemy () (at Assets/Scripts/TargetMob.cs:57)
TargetMob.Update () (at Assets/Scripts/TargetMob.cs:93)

This error showing up when I try select mob, and I all time see they names.

Can you help me?

Petey's picture
Offline
Joined: Feb 3 2010

Looks like your are trying to use something that the game does not have. This is a common error when trying to access something that you have not created yet. Check the spelling of the variables at the lines where the errors are occurring and make sure they are spelled right.

Offline
Joined: Jul 16 2011

there are some really cool buildings at:
http://reinerstilesets.de/
and http://turbosquid.com/

mirilaika's picture
Offline
Joined: Jul 8 2011

hi to all,
after Pete repair the problem in the beginning of the tutorial i received a strange error, after hit tab key (often at second or third hit):

f < INT_MIN || f > INT_MAX
Assert in file: C/BuildAgent/work/6bc5f79e0a4296d6/Editor/MonoGenerated/Editor/EditorGUIUtility.cs at line: 261

this don't look like error in the project...

Offline
Joined: Aug 15 2011

I had the same error. Check your slug prefabs. One of them (or all) have their public int for their min/max health set to 0. So look at the prefab, under the Mob component, make sure to set the Cur Health, and Max Health, to a value other than 0.

mirilaika's picture
Offline
Joined: Jul 8 2011

thanks for help!!! it is ok now, i am going forward :)

kxmode1's picture
Offline
Joined: Aug 23 2011

Thank you. That solved my problem.