@mitchell244091ify my blog has the scripts for all of my tutorials on here. purdyjotut.blogspot[DOT]com/2011/02/creating-game-in-unity-part-1-main-menu.html
@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 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?
@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
@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
@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)
@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
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
@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
@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
@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
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
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
@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.
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
@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...
@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...
@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.
@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
wow i'll tested now :D thanks, make more tutorial plz :D
ZouheirIbnabdeljalil 2 days ago
my javascript dosent open anything
pixelspelarna 4 days ago
@pixelspelarna okey now it opens but it says function start
pixelspelarna 4 days ago
fix all complier errors .. WTF o.O
xXexenarothXx 1 week ago
@xXexenarothXx lol ok so what are the compiler errors
purdyjo 1 week ago
@purdyjo dont worry i have fixed it , i spelt renderer with a capital :)
xXexenarothXx 1 week ago
@xXexenarothXx haha I hate silly little errors like that
purdyjo 1 week ago
could you send me the script for this?
its because mine won't work
plzz?
mitchell244091ify 1 week ago
@mitchell244091ify my blog has the scripts for all of my tutorials on here. purdyjotut.blogspot[DOT]com/2011/02/creating-game-in-unity-part-1-main-menu.html
purdyjo 1 week ago
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
mitchell244091ify 1 week ago
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
purdyjo 2 weeks ago
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?"
Karsestar 2 weeks ago
@purdyjo i'm now having more problems!!!!
IT WON'T HIGHLIGHT MY QUIT TO DESKTOP TEXT!!!!!!!!! BUT MY START NEW GAME TEXT DOES!!!!!!!!!!!!!!
Blayer98 2 weeks ago
Comment removed
Blayer98 2 weeks ago
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 3 weeks ago
@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 3 weeks ago
@purdyjo It's work now
thank you so much
can I add your msn or another messenger
PharaohVU 2 weeks ago
@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 3 weeks ago
@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 3 weeks ago
@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?
Blayer98 3 weeks ago
@purdyjo its now saying it need to compile all of the script. did i do anything wrong?
Blayer98 3 weeks ago
@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
purdyjo 3 weeks ago
Comment removed
Blayer98 3 weeks ago
unity 3.4.2?
zitored 3 weeks ago
@zitored I dont remember what version of unity I was using at this time,
purdyjo 3 weeks ago
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
purdyjo 1 month ago
what program you use to record your screen? thanjksand good video
emilianocarra 1 month ago
@emilianocarra camtasia studio 6
zitored 3 weeks ago
@jjchip2000 save scene? As in ctrl + s? Or file -> save scene?
purdyjo 1 month ago
how do u go to Save Scene Please help
jjchip2000 1 month ago
how much experience have you had with unity?
cocksnap123 1 month ago
How can i make a restart button?
GrandpaWitcher 1 month ago
@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 1 month ago
@purdyjo Thanks. I've figured it out 2 minutes later. But i was too lazy to remove that comment.xD
GrandpaWitcher 1 month ago
my script has no debugs but when i pressed play it didn't change color
MultiVideogamelover 1 month ago
@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 1 month ago
@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 1 month ago
@MultiVideogamelover except i named the script different
MultiVideogamelover 1 month ago
do this thing work on unity1?
stevenhuang629 2 months ago
@stevenhuang629 haven't tried. Only one way to find out though!
purdyjo 2 months ago
@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)
majest112 2 months ago
the error i get is the name color does not exist in the current context
mstrsknk 2 months ago
@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 2 months ago
@purdyjo
Well now im getting a atuid error UnityEngne.color does not contain a definition for blue
mstrsknk 2 months ago
@mstrsknk like I said, the only way an error like that is going to come up is if you typed something wrong
purdyjo 2 months ago
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 2 months ago
@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 2 months ago
@purdyjo Im a total noob so can you translate after that translation to ENGLISH lol
Deziyner 2 months ago
@Deziyner haha perhaps
purdyjo 2 months ago
@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
mstrsknk 2 months ago
@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
mstrsknk 2 months ago
You Have Earned a sub keep up the good work
screamz332 3 months ago
people you can use C# script!!
leonSkennidy 3 months ago
Comics Sans because it sucks and everybody hates it hahahaha nice one
tenaciouslee90 3 months ago
JAVA FOR TEH WIN!
Nice video!
TheMcDucky 3 months ago
@TheMcDucky
Too bad you can't use java in unity
TheMcDucky 3 months ago
@TheMcDucky u can use javascript
funnycunt83 3 months ago
@funnycunt83
That's not the same as java :( (i think)
TheMcDucky 3 months ago
@TheMcDucky no it's not, javascript would actually be closer to Actionscript in my experience with it
purdyjo 3 months ago
@purdyjo
Yeah...
I think java is closer to actionscript than javacript (I'm not pro)
TheMcDucky 3 months ago
@TheMcDucky
I've been using all of them though...
TheMcDucky 3 months ago
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
Leandro98139 3 months ago
This has been flagged as spam show
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
Leandro98139 3 months ago
This has been flagged as spam show
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
Leandro98139 3 months ago
This has been flagged as spam show
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
Leandro98139 3 months ago
This has been flagged as spam show
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
Leandro98139 3 months ago
This has been flagged as spam show
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
Leandro98139 3 months ago
This has been flagged as spam show
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
Leandro98139 3 months ago
This has been flagged as spam show
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
Leandro98139 3 months ago
This has been flagged as spam show
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
Leandro98139 3 months ago
This has been flagged as spam show
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
Leandro98139 3 months ago
This has been flagged as spam show
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
Leandro98139 3 months ago
This has been flagged as spam show
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
Leandro98139 3 months ago
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?
xXEliteTacoXx 3 months ago
if my game is called GAME do i put it in brackets after i typed in Load?
htah427 4 months ago
@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 4 months ago
@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
htah427 4 months ago
thx btw you are helpful. (i subbed)
TEST12345hi 5 months ago
@TEST12345hi haha thanks
purdyjo 5 months ago
hello when i try to copy and paste the fonts it wont let me why?
TEST12345hi 5 months ago
@TEST12345hi maybe you dont have the rights to on your computer, you may have to be an administrator to do so
purdyjo 5 months ago
Comment removed
TEST12345hi 5 months ago
@purdyjo How do you get Administrator rights?
TEST12345hi 5 months ago
@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 5 months ago
@purdyjo thx btw you are helpful. (i subbed)
TEST12345hi 5 months ago
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
brandonhughes7 6 months ago
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
brandonhughes7 6 months ago
Very Usefull thx! :)
PalidFingers 6 months ago
it should look some kind of diffrent ^^
JakobS96 8 months ago
@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
purdyjo 8 months ago
damn it
JakobS96 8 months ago
JakobS96 8 months ago
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 8 months ago
@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
purdyjo 8 months ago
thinks for this script its do working
taha22199507 8 months ago
This has been flagged as spam show
i need this script
sent please to "TahaFreakt@hotmail.com"
taha22199507 8 months ago
i need this script
taha22199507 8 months ago
@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 8 months ago
@purdyjo
It says that that page doesnt exist!!!
TheOreothief 6 months ago
@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 6 months ago
@purdyjo Yah i copy and pasted link and all i get is a "sorry that page doesn't exist"
TheOreothief 6 months ago
the funny part is ...08:19 and 10:04 UuHhhh~~
29041982 8 months ago
But I love comic sans...
iendedyoui 9 months ago
@iendedyoui haha, one of the few
purdyjo 9 months ago
@purdyjo Well...if thats the case I might stop using it for projects ;P
iendedyoui 9 months ago
This is free right
111Nicholas111 9 months ago
@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
purdyjo 9 months ago
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.
taha22199507 9 months ago
Hi can you do tuturial how to make iphone game pls and thanks dude
marcinifilip 9 months ago
@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
purdyjo 9 months ago
@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.
purdyjo 10 months ago
@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
purdyjo 10 months ago
@stunner8000 just rotate the camera so it's aimed towards the particle effect and you should be good to go
purdyjo 11 months ago
@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...
purdyjo 11 months ago
This looks a lot like TornedoTwin's script...
GamesEvolved 1 year ago
@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 1 year ago
@purdyjo
Unity is always 3D,
It's called Unity3D....
GamesEvolved 1 year ago
@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 1 year ago
@purdyjo
yes, but they're still build in 3D space....
GamesEvolved 1 year ago
@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.
purdyjo 1 year ago
if you cant find a font in here then you're too picky lol
bobo77bob 1 year ago
@bobo77bob lol yeah, well it's true, there's at least 200 fonts in there
purdyjo 1 year ago
This has been flagged as spam show
You will show us how to make a game?
amvtop10 1 year ago
@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
purdyjo 1 year ago