Jump to content

  • Log In with Google      Sign In   
  • Create Account

Interested in a FREE copy of HTML5 game maker Construct 2?

We'll be giving away three Personal Edition licences in next Tuesday's GDNet Direct email newsletter!

Sign up from the right-hand sidebar on our homepage and read Tuesday's newsletter for details!


We're also offering banner ads on our site from just $5! 1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


Untiy3D Help!


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
7 replies to this topic

#1 Howligan   Members   -  Reputation: 106

Like
0Likes
Like

Posted 01 August 2013 - 04:47 PM

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

 

Attached Thumbnails

  • need help with unity.png
  • Screenshot_4.png
  • Screenshot_5.png


Sponsor:

#2 Howligan   Members   -  Reputation: 106

Like
0Likes
Like

Posted 01 August 2013 - 04:48 PM

OK so I didn't actually state my question. What is that error? What does it mean? How do I get rid of it?



#3 Dwarf King   Crossbones+   -  Reputation: 1882

Like
3Likes
Like

Posted 01 August 2013 - 05:20 PM

try to look at the semicolons.


Edited by Dwarf King, 01 August 2013 - 05:21 PM.

"The only thing that interferes with my learning is my education"

Albert Einstein

"It is a miracle that curiosity survives formal education"

Albert Einstein

 


#4 ScottK   Members   -  Reputation: 255

Like
2Likes
Like

Posted 01 August 2013 - 06:37 PM

my guess is

 

var Damage ;int = 50;  should be

 

var Damage :int = 50; 

 

always check for typos first.



#5 zee_ola05   Members   -  Reputation: 325

Like
0Likes
Like

Posted 01 August 2013 - 09:25 PM

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.



#6 Howligan   Members   -  Reputation: 106

Like
0Likes
Like

Posted 02 August 2013 - 03:18 AM

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!



#7 Karsten_   Members   -  Reputation: 1634

Like
0Likes
Like

Posted 02 August 2013 - 09:58 AM

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_, 02 August 2013 - 09:58 AM.

Mutiny - Open-source C++ Unity re-implementation.
Defile of Eden 2 - FreeBSD and OpenBSD binaries of our latest game.


#8 nobodynews   Crossbones+   -  Reputation: 2021

Like
0Likes
Like

Posted 02 August 2013 - 11:37 AM

Tangential to the discussion, but it's spelled Java, not JAVA.


C++: A Dialog | C++0x Features: Part1 (lambdas, auto, static_assert) , Part 2 (rvalue references) , Part 3 (decltype) | Write Games | Fix Your Timestep!





Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS