Redirecting you to bearmacstudios.com.... BearMac Studios: Tutorial

Pages

Showing posts with label Tutorial. Show all posts
Showing posts with label Tutorial. Show all posts

Thursday, July 19, 2012

Finally, Another Tutorial!

I got myself back on track and here's another tutorial for you guys. I've got a lot more stuff I've learned and I'm hoping I can teach most of it to you.
Here's an active crosshair tutorial for you guys.

Tuesday, February 21, 2012

New features added!

So today I took a look at what I said I was going to add to the game and I added some stuff. First and foremost I implemented a save game function, now as soon as you get to a level it automatically saves your progress. I'm not going to make it to where it loads you up to exactly where you were, they're not huge puzzles, so that would be kind of pointless (Check point system? maybe?). I added some music at the title screen from freesound.org. It's just a placeholder until I can actually get something composed for it later. I also added a custom mesh, nothing too fancy, just a hexagon with a "rocky" feel to it. I'm starting to form my opinion on where we'll be going with this next as far as artistically. We'll see where that goes. It's going to be story driven, but not your contemporary story that's for sure (humorous?). I also added a loading screen, it's not a scene that I put in between each level scene, but a texture that I fill to the screen right before a scene loads. So just wanted to do a quick update. I know I'm filling you guys up on text, but I'm going to have another video up soon! Tutorial or Demo? We'll see!

P.S.
I added a new page to the blog dedicated to scripts! Any scripts I upload in the future will be there!

Thursday, February 16, 2012

Pause Menu Tutorial!




Here it is guys! I'll be uploading our Demo here soon, so keep an eye out for that! Thanks to all of you that watch!

Pause Menu Script!

Here's a script that's extremely similar to the main menu script. It's for the pause menu in the tutorial that's on YouTube right now!

var menuHeight:float=500;
var menuWidth:float=500;
var buttonSpacing:float=25;
var mainMenu: String = "MainMenu";
var titleTexture:Texture2D;
var customSkin:GUISkin;
var customStyle:GUIStyle;

function OnGUI(){
GUI.skin = customSkin;
GUILayout.BeginArea(Rect(Screen.width/2-menuWidth/2,Screen.height/2-menuHeight/2,menuHeight,menuWidth),customStyle);
GUILayout.Space(50);
GUILayout.Label(titleTexture);
GUILayout.Space(buttonSpacing);
if(GUILayout.Button("Main Menu")){
Application.LoadLevel(mainMenu);
}
GUILayout.Space(buttonSpacing);
if(GUILayout.Button("Exit to Desktop")){
Application.Quit();
}
GUILayout.Space(buttonSpacing);
GUILayout.EndArea();
}

Thursday, February 9, 2012

Woah! two videos in one day!

I uploaded another video today. it's a tutorial. great learning experience. You guys must think I'm crazy with two videos within the same day! so take a look and enjoy! I'll be uploading the full script as soon as we get it finished! if you comment and stuff like that it encourages me to continue my work and it helps me out a lot!


New Project!

Here's an extremely small demo of our first project. it's just a couple hours of work. I learned a lot by making this, and  I will be making a tutorial on the Time class in unity. Let me know what you think and throw requests out there if you can! Thanks!



Oh yeah and the sounds are all from freesounds.org
Great place to go for, well, free sounds! Go ahead and check that out and if you'd like anymore info post a comment on here or on youtube!

Monday, February 6, 2012

Tutorial Part 3




Here it is guys, check it out. I hope you all learned a little. I sure did. tell me where I should go next!

Thursday, February 2, 2012

Tutorial Part 2


In this we start our script for the main menu on a blank scene. Everything from here on out will move pretty quickly and smoothly. Just wait for the next episode coming soon, and the pre-made MainMenu script will be uploaded shortly after this post. Feel free to use it, it's not too complex so you don't need to give credit, though it would be nice ;)

Tuesday, January 31, 2012

Intro To My First Tutorial!




I'll upload the full scripts after the second part, maybe a project file. Let me know what you guys think and what direction I should go next. Thanks!

Friday, January 27, 2012

Quick help with understanding UnityScript

In a UnityScript script you will see something like this :
gameObject.GetComponents("MyScript").BooleanVariable = true;

Now for the people who look at that like "wtf?"
Here's a simple way to understand that;
Say I need Unity to find my computer and turn the power buttton to on, in a Java or UnityScript environment I would tell unity
MyHouse.MyRoom.Desk.Computer.PowerButton = on;

So to access a script named PowerButton on a gameobject named computer and change the Boolean variable powerButton to an on state we'd approach it like this;
GameObject.Find("computer").GetComponent("PowerButton").powerButton = true;

I saw this explanation awhile ago and it really helped me teach myself how make things happen in Unity.