Stick Page Forums Archive

The_Stick's C# and UnityScript shop!

Started by: The_Stick | Replies: 4 | Views: 1,355

The_Stick
Banned

Posts: 267
Joined: Nov 2012
Rep: 10

View Profile
Jan 17, 2013 5:30 PM #853562
Well, flash is very popular, and Unity isn't big on this forum, so I decided too let it squeeze through the cracks while I make my game in it and make a script shop!

Here's how it works

You: I need a Main Menu script with start/exit buttons in C#!

*Wait until I get until my computer and give the code*

Me: Here it is!


using UnityEngine;
using System.Collections;

public class NameofScriptHere : MonoBehaviour {

void OnGUI() {

if (GUI.Button(new Rect(10, 10, 50, 50),"Exit"))
{

Application.Quit();

Debug.Log("Clicked Exit Game");
}
if (GUI.Button(new Rect(10, 70, 50, 30), "Start"))
{
Application.LoadLevel("Name of level 1");

Debug.Log("Clicked Start");
}
}
}


Note: I don't have the Unity editor open infront of me, I've been actually having stability problems with it, so this basic script might not work.
m0ntana
2

Posts: 1,136
Joined: Oct 2012
Rep: 10

View Profile
Jan 17, 2013 8:43 PM #853670
You might want to put this in the ''Resources'' thread.
Jeff
Administrator
1

Posts: 4,356
Joined: Dec 2007
Rep: 10

View Profile
Jan 17, 2013 8:49 PM #853676
This is kind of irrelevant, and I apologize for it, but do you know anything about skeletal animation and/or IK limb placement? I've been trying to work out a system I can use in games but I'm not sure where to start.
The_Stick
Banned

Posts: 267
Joined: Nov 2012
Rep: 10

View Profile
Jan 17, 2013 9:59 PM #853769
Quote from Jeff
This is kind of irrelevant, and I apologize for it, but do you know anything about skeletal animation and/or IK limb placement? I've been trying to work out a system I can use in games but I'm not sure where to start.

Sorry, but you can go to www.mixamo.com and save some time rigging your model :) Go to characters -> custom character -> upload character then use the rigging webpage there. There are also some pretty good animations too apply too your char.

m0ntana, it WAS in the help and resources section, then the mods made them seperate forums, and this got stuck on the help forum. Mod, please move this.
m0ntana
2

Posts: 1,136
Joined: Oct 2012
Rep: 10

View Profile
Jan 17, 2013 10:00 PM #853774
Oh. Well, the thread has already been moved, so you have nothing to worry about.
Anyways, good luck with your shop. If I'm interested, I might order soon.
Website Version: 1.0.4
© 2025 Max Games. All rights reserved.