Jump to content
  • Advertisement
Sign in to follow this  

Untiy3D Help!

This topic is 1752 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I am new here so I am not entirely sure where to post this but I figured here would be the right place to post this topic since I am a beginner and this is the beginner section. 

 

My problem is, I was coding a Raycast in JAVA (for a melee system) and I got an error like this (need help with unity.png)

 

I don't know if it has to do with the code I created for the enemies. (That's why enemy logic is there). The only thing I put for the enemies is for them to lose health. They don't attack or move.

 

Key:

Melee System Code: Top Right

Error: Top Left

Enemy Logic: Bottom Left

 

Share this post


Link to post
Share on other sites
Advertisement

my guess is

 

var Damage ;int = 50;  should be

 

var Damage :int = 50; 

 

always check for typos first.

Share this post


Link to post
Share on other sites

This isn't a response to your question. But I would also like to correct. You aren't programming in JAVA. It's Javascript. Those are two completely different language.

Share this post


Link to post
Share on other sites

This isn't a response to your question. But I would also like to correct. You aren't programming in JAVA. It's Javascript. Those are two completely different language.

Ok thanks Ill keep that in mind next time!

Share this post


Link to post
Share on other sites

Hmm, doesnt look like Javascript either. Seems to be Unityscript which is also quite different to Java and Javascript ;)

 

If you want to lookup syntax examples using Google, then use Unityscript in the search term or you might get something that requires a very different compiler.

Edited by Karsten_

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!