Added: 1 year ago
From: purdyjo
Views: 13,547
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (132)

Sign In or Sign Up now to post a comment!
  • wow i'll tested now :D thanks, make more tutorial plz :D

  • my javascript dosent open anything

  • @pixelspelarna okey now it opens but it says function start

  • fix all complier errors .. WTF o.O

  • @xXexenarothXx lol ok so what are the compiler errors

  • @purdyjo dont worry i have fixed it , i spelt renderer with a capital :)

  • @xXexenarothXx haha I hate silly little errors like that

  • could you send me the script for this?

    its because mine won't work

    plzz?

  • @mitchell244091ify my blog has the scripts for all of my tutorials on here. purdyjotut.blogspot[DOT]com/20­11/02/creating-game-in-unity-p­art-1-main-menu.html

  • i tried to do the Color thing but it doesn't change color for when i add red and white (color) it doesn't change colour in monodevelop

  • lol while I agree, the whole thing with the video is that you have a visual aid, and can rewind so that you can SEE what I'm doing

  • It would be awesome, if you explained a little more what you do.

    Sometimes you say "and then we just do this", and you do something, and i'm just like: "How? HOW DID YOU DO IT?"

  • @purdyjo i'm now having more problems!!!!

    IT WON'T HIGHLIGHT MY QUIT TO DESKTOP TEXT!!!!!!!!! BUT MY START NEW GAME TEXT DOES!!!!!!!!!!!!!!

  • Comment removed

  • what's wrong with my script when i pressed play and move mouse through the button

    it didn't change color

    this is my code

    using UnityEngine;

    using System.Collections;

    public class MenuDeco : MonoBehaviour

    { public bool isQuit = false; void OnMouseEnter() { renderer.material.color = Color.black; } void OnMouseExit() { renderer.material.color = Color.white; } void OnMouseDown() { if(isQuit) { Application.Quit(); } else { Application.LoadLevel(1); } }

    }

  • @PharaohVU did you attach a box collider to the menu object? Thats how the onMouseEnter() and onMouseExit() functions work. They need that collider otherwise they wont be called at all

  • @purdyjo It's work now

    thank you so much

    can I add your msn or another messenger

  • @purdyjo i'm having another proplem with the compiler when i bult and ran my game it worked fine! but when i ticked the "isquit" box, it had a compiler error. please help!

  • @Blayer98 It wouldnt be a compiler error if you ran it and it messed up, thats a runtime error. Unity wont run if there are compiler errors. Runtime errors occur when something within the scene isnt set up properly, so im guessing that one of a few things, such as not attaching a collider to the text object?

  • @purdyjo i'm having problems with a sound. how do you get a sound to play if you have clicked on an object which attemps to play the sound as you click it?

  • @purdyjo its now saying it need to compile all of the script. did i do anything wrong?

  • @Blayer98 if unity ever tells you something like that, it is most likely a simple spelling error or you missed a semi colon. If you hit compile in monodevelop or whatever environment you are programming in it will tell you what the error is

  • Comment removed

  • unity 3.4.2?

  • @zitored I dont remember what version of unity I was using at this time,

  • I just use a program called camstudio to record my videos. It does it's job, but you have to fiddle around with some settings to get it just right

  • what program you use to record your screen? thanjksand good video

  • @emilianocarra camtasia studio 6

  • @jjchip2000 save scene? As in ctrl + s? Or file -> save scene?

  • how do u go to Save Scene Please help

  • how much experience have you had with unity?

  • How can i make a restart button?

  • @GrandpaWitcher What you would do is create another button the same way we did and make it either delete all of the save data or start over from the first level

  • @purdyjo Thanks. I've figured it out 2 minutes later. But i was too lazy to remove that comment.xD

  • my script has no debugs but when i pressed play it didn't change color

  • @MultiVideogamelover well you gotta give me a little more info than that. I have no idea where your problem would be from what you gave me

  • @purdyjo well like i copied exactly from your script

    using UnityEngine;

    using System.Collections;

    public class menu : MonoBehaviour

    { void OnMouseEnter () { renderer.material.color = Color.white; } void OnMouseExit () { renderer.material.color = Color.white; }

    }

    there is the script but for somereason it didnt work for me

    could you please tell me whats wrong

  • @MultiVideogamelover except i named the script different

  • do this thing work on unity1?

  • @stevenhuang629 haven't tried. Only one way to find out though!

  • @stevenhuang629 No.then its updating and u need to wait a couple of minuts then u need to re-do everything.then after the waiting u only have ur set and assets from 3.4.2 (if u use 3.4.2)

  • the error i get is the name color does not exist in the current context

  • @mstrsknk I honestly have no idea why some people are getting that error. It works in the video and a lot of other people have gotten it working as well using this code. The only thing I can think of is that it's just some small typing error being made somewhere that is being missed

  • @purdyjo

    Well now im getting a atuid error UnityEngne.color does not contain a definition for blue

    

  • @mstrsknk like I said, the only way an error like that is going to come up is if you typed something wrong

  • NICE VID! THIS IS THE MAIN MENU TUTORIAL IVE BEEN USING FOR DAYS! This one video anyways. And guys, just because you know the world javascript doesnt mean its the best. Its just differrent lanugaging.

  • @METROPOLIfilms haha thanks. and for those people who are obsessed with using javascript, maybe one day when I am bored I will translate them all for you guys haha

  • @purdyjo Im a total noob so can you translate after that translation to ENGLISH lol

  • @Deziyner haha perhaps

  • @METROPOLIfilms when i try to put the first menu script in the quit game folder it tells me to fix all compile errors, i have the same as you typed what is wrong

  • @METROPOLIfilms

    can you please emial me and let me send you the script so you can tell me what wrong my email is mstrsknk@yahoo.com

  • You Have Earned a sub keep up the good work

  • people you can use C# script!!

  • Comics Sans because it sucks and everybody hates it hahahaha nice one

  • JAVA FOR TEH WIN!

    Nice video!

  • @TheMcDucky

    Too bad you can't use java in unity

  • @TheMcDucky u can use javascript

  • @funnycunt83

    That's not the same as java :( (i think)

  • @TheMcDucky no it's not, javascript would actually be closer to Actionscript in my experience with it

  • @purdyjo

    Yeah...

    I think java is closer to actionscript than javacript (I'm not pro)

  • @TheMcDucky

    I've been using all of them though...

  • Ta not running these codes from my UNITY PRO! It appears that this compilção with error! Help me? My MSN::: leandrao.333@ hotmail.com 

  • My unity keeps saying "the name 'color' does not exist in the current context" when I finish the enter and exit script, what do I do?

  • if my game is called GAME do i put it in brackets after i typed in Load?

  • @htah427 You put whatever you named your level into Load. If the level you want to load is called GAME then yeah, you would get something like Application.LoadLevel("GAME") or if it was the next level like what I had you could just put in Application.LoadLevel(1). It doesn't make much of a difference, I prefer to use the number instead because id rather it use the level index, than have to parse the string and find the level

  • @purdyjo Kool Cheers Bro, i've just recently joined a Games Design Uni course, our first assignment was to create Space Invaders Clone. It looks like i've done good, but the report will be handed on Thursday, Fingers Crossed :I

  • thx btw you are helpful. (i subbed)

  • @TEST12345hi haha thanks

  • hello when i try to copy and paste the fonts it wont let me why?

  • @TEST12345hi maybe you dont have the rights to on your computer, you may have to be an administrator to do so

  • Comment removed

  • @purdyjo How do you get Administrator rights?

  • @TEST12345hi Well the easiest way is to type in CMD in run, right click and run as administrator, then when its open type in: net user administrator /active:yes

    that should work

  • @purdyjo thx btw you are helpful. (i subbed)

  • PS ppl who r using this make sure you type the file name perfectly like if he says Level1 don't type level 1 or level1 you have to have it exactly like Level1 with the capital letter or else it wont work

  • i like that you give the script to use because makeing the scripe never works for me it never comes out right. thanks i love your video

  • Very Usefull thx! :)

  • it should look some kind of diffrent ^^

  • @JakobS96 well, if that is copy and paste, color should be Color with a capital C. otherwise i honestly dont see anything wrong with that script

  • damn it

  • using UnityEngine; using System.Collections; public class MenueObject: MonoBehaviour { void OnMouseEnter () { renderer.material.color = color.red; } void OnMouseExit () { renderer.material.color = color.white; } } this is my script
  • I have a little question... When i try to add the script to one of the texts, there comes the message: Can't add script... i need to fix all compile errors first..

    Then I've looked up the console, and it sais that "color" doesn't exist in the current context... I NEED HEEELP !! ^^

  • @JakobS96 It should be working fine, the only thing I can think of is that you are using object.color instead of object.material.color in your script somewhere, go to the line number that the error is on and check that for me

  • thinks for this script its do working

  • i need this script

  • @taha22199507 in the description of the video i post my blog site purdyjotut.blogspot.com and the script is there if you need it

  • @purdyjo

    It says that that page doesnt exist!!!

  • @TheOreothief I just tested it and it should work just fine, did you copy paste into your browser or did you type it in, perhaps a typo was made

  • @purdyjo Yah i copy and pasted link and all i get is a "sorry that page doesn't exist"

  • the funny part is ...08:19 and 10:04 UuHhhh~~

  • But I love comic sans...

  • @iendedyoui haha, one of the few

  • @purdyjo Well...if thats the case I might stop using it for projects ;P

  • This is free right

  • @111Nicholas111 um, Im not sure what you are referring to as this. But the answer would be yes i guess, Unity is free unless you want certain features or want to develop on certain platforms, and yes all of the tutorials and source and anything else is free as well

  • There are inconsistent line endings in the 'Assets/menuobject.cs' script. Some are Mac OS X (UNIX) and some are Windows.

    This might lead to incorrect line numbers in stacktraces and compiler errors. Unitron and other text editors can fix this using Convert Line Endings menu commands.

  • Hi can you do tuturial how to make iphone game pls and thanks dude

  • @marcinifilip

    I do plan on doing a tutorial for the iphone at some point, but honestly, it should be close to the same when it comes to set up and coding. You will just have to be more cautious while you are coding since the iphone will be hit much harder by anything that us performance heavy

  • @wert111353 that definitely sounds like a Unity problem. Try starting a new project and seeing if it saves, if it screws up then give unity a quick reinstall. If it does work then I honestly don't know what to say, these scripts shouldn't have done anything to the saving of your project.

  • @wert111353 what do you mean you can't save now? doing the menu shouldnt have done anything to the project settings or the settings within Unity. You should just be able to hit save and be good to go

  • @stunner8000 just rotate the camera so it's aimed towards the particle effect and you should be good to go

  • @The7thRiot actually, you are completely wrong. The gui is not located on the camera lens, because there is no camera lens in a game camera. A camera is a point in 3d space with a view frustrum. Any GUI that is drawn is drawn after everything has been renderered, in SCREEN space. 2d...

  • This looks a lot like TornedoTwin's script...

  • @GamesEvolved Just checked out the video. All I gotta say is, it's a 3D menu, that's basically the way you do it

  • @purdyjo

    Unity is always 3D,

    It's called Unity3D....

  • @GamesEvolved wow kid really? It's called Unity3D because it has the capability to do 3D. You obviously haven't seen any of the 2D games built in Unity, or the video that goes along with this one...

  • @purdyjo

    yes, but they're still build in 3D space....

  • @GamesEvolved honestly kid, if you are putting it that way, they may as well call adobe flash flash3d since it has 3d capabilities. True, some 2D games are built in 3D space, but some are using GUI, which has no world position, just screen position, which would be considered 2D.

  • if you cant find a font in here then you're too picky lol

  • @bobo77bob lol yeah, well it's true, there's at least 200 fonts in there

  • @amvtop10 Thats the plan. What these videos are supposed to do is show you how to use different parts of the Unity engine, all while building a game/multiple games in the process

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more