Contest SW-JAM 2013 Welcome Page (Read 12375 times) Game Jam 14-22 September

  • Avatar of MaD
  • the darkest member
  • Pip
  • Group: Premium Member
  • Joined: Aug 20, 2003
  • Posts: 110
Is there a way for you to preset like some padding? I wouldn't really know. Unity is way over my head.
that's what i tried to do with the code snippet i pasted a few pages back. still unsure why that didn't work, it should be dividing fine.
 
It's been awhile since I've messed with Unity.  I never liked UnityGUI and I actually at some point started using NGUI: http://www.tasharen.com/?page_id=140 (you can get the source somewhere and get around the watermark I'm pretty sure, as long as you don't use it commercially).
 
Have you tried GUI.BeginGroup(Rect(whatever location and size you want)).  This will make any following controls be positioned relative to the rectangle you specify in BeginGroup.  So if you gave it a box at (100, 90) and then place a button at (0, 0), it would set it to (100, 90).  
 
There are also some nifty methods in the GUILayout helper that might be helpful.  Here is an overview on UnityGUI layout stuff: http://docs.unity3d.com/Documentation/Components/gui-Layout.html
  • Avatar of sambr
  • Pip
  • Group: Member
  • Joined: Aug 7, 2012
  • Posts: 193
so someone on the unity forums figured out my problem. the size of the guitexture wasn't relative. the only problem is me attempting to figure out how to make it so haha.
for anyone who's interested, here's some code.
 
Quote
public var originalWidth : float;  // define here the original resolution
public var originalHeight : float; // you used to create the GUI contents 
private var scale: Vector3;
public var tex : Texture;
public var s : GUISkin;
 
function OnGUI(){
    scale.x = Screen.width/originalWidth; // calculate hor scale
    scale.y = Screen.height/originalHeight; // calculate vert scale
    scale.z = 1;
    var svMat = GUI.matrix; // save current matrix
    // substitute matrix - only scale is altered from standard
    GUI.matrix = Matrix4x4.TRS(Vector3.zero, Quaternion.identity, scale);
    // draw your GUI controls here:
    
    //GUI.Box(Rect(10,10,200,50), "Box");
    //GUI.Button(Rect(400,180,230,50), "Button");
    GUI.DrawTexture(Rect(Screen.width/2.65,Screen.height / 2,446,202), tex);
    GUI.contentColor = Color.black;
    GUI.skin = s;
    GUI.Label(Rect(Screen.width/2.5,Screen.height / 37*20,446,202),"text!");
    
    //...
    // restore matrix before returning
    GUI.matrix = svMat; // restore matrix
}
i got the main base off of the wiki, and altered it to suit my guis.
good news is is that i modelled two NPCS today so thats cool i guess.
  • Avatar of chuckie egg
  • Group: Member
  • Joined: Jan 2, 2010
  • Posts: 45

 
i want to make sure flying is fun + try with 360 controller before i start adding any more stuff
glorious salty future
  • Group: Member
  • Joined: Sep 11, 2013
  • Posts: 3

 
Physics implemented, and some other stuff.
Last Edit: September 16, 2013, 07:31:40 am by Programming Fish
  • Avatar of thecatamites
  • clockamite
  • PipPipPipPipPipPipPip
  • Group: Premium Member
  • Joined: May 6, 2007
  • Posts: 1445
cool stuff in last two pages!
also bwiz in player settings you can set a standard resolution and then turn off the "change resolution" dialogue and design everything for that... i don't think unity has rescaleable fonts which can get messy across res changes so it can be easier to just set a resolution from the start rather than work out conditions for this stuff. if anyone wants to fullscreen they can push alt+enter and you can see what it looks like by changing the in-game editor cam thing aspect to "standalone".
 
tech talk! i haven't really been working last two days but have been thinking up ideas and now i'm starting.
http://harmonyzone.org
  • Group: Member
  • Joined: Sep 9, 2013
  • Posts: 10

Hopefully the image works.
 
 
So far got the starting area half done and the first conversation sorted need to get some decent artwork done, im not that best at drawing also got a convo outcome that leads to this
 




 


 
 
 
 

 
Last Edit: September 16, 2013, 09:35:31 am by jamesthejam
  • Group: Member
  • Joined: Sep 16, 2013
  • Posts: 1
Haven't had a lot of time to work on it but this is what I've got so far

  • Group: Member
  • Joined: Sep 9, 2013
  • Posts: 10
I feel quite bad because everyone's art is so much better than mine
  • Administrator
  • PipPipPipPipPipPipPipPip
  • Group: Premium Member
  • Joined: Oct 30, 2005
  • Posts: 2533
Don't worry, your game looks interesting (honestly).
 

 
Meanwhile I'm having trouble implementing the stuff I plan in Engine001. This is what you get when you're not all too familiar with the engine you're working with.
  • Avatar of sambr
  • Pip
  • Group: Member
  • Joined: Aug 7, 2012
  • Posts: 193
cool stuff in last two pages!
also bwiz in player settings you can set a standard resolution and then turn off the "change resolution" dialogue and design everything for that... i don't think unity has rescaleable fonts which can get messy across res changes so it can be easier to just set a resolution from the start rather than work out conditions for this stuff. if anyone wants to fullscreen they can push alt+enter and you can see what it looks like by changing the in-game editor cam thing aspect to "standalone".
 
tech talk! i haven't really been working last two days but have been thinking up ideas and now i'm starting.
 
sweet! i did this, but have yet to try it on someone else's computer. thanks catamites!
  • Group: Member
  • Joined: Sep 9, 2013
  • Posts: 10
If anyone has the time could you please just check to see if there is anything i can improve on email me and i'll send you a copy of what i have done so far
 
Email me - [email protected] 
Last Edit: September 16, 2013, 03:52:14 pm by jamesthejam
  • Avatar of Ice Baby1
  • Power to the parsley
  • PipPipPipPipPip
  • Group: Member
  • Joined: Oct 31, 2012
  • Posts: 637
it seems i've uh........... "jumped the gun", so to speak...... what i'm *mumble, mumble*... capable of accomplishing in nine days...... minuscule attention span *mumble, mumble*.... some would call it "wishy-washy"...... don't judge me!!! well, upon reflection, how could i not do Kissin' Wizard????....... i'm thinking a little randomized top-down goreworld action
 
some tiles.

Last Edit: September 16, 2013, 09:05:17 pm by gods17
  • Group: Member
  • Joined: Sep 16, 2013
  • Posts: 1
Hello there. My name is José Carlos Candido, aka Zetsaika, and i am from Brazil.
 
I'll be doing a game in Haxe + HaxePunk.
  • Avatar of denzquix
  • PipPipPipPipPip
  • Group: Member
  • Joined: Aug 22, 2012
  • Posts: 630
Hello there. My name is José Carlos Candido, aka Zetsaika, and i am from Brazil.
 
I'll be doing a game in Haxe + HaxePunk.
welcome José! it's great to have you aboard
  • Avatar of sambr
  • Pip
  • Group: Member
  • Joined: Aug 7, 2012
  • Posts: 193
 
i love these
  • Group: Member
  • Joined: Sep 9, 2013
  • Posts: 20
So I'm sick for some reason. Still trying to work on Heart Stealer  tho i'm not progressing well. Looking at wednesday/thursday to post a build.
  • Avatar of dicko
  • HO HO HO
  • PipPipPipPipPipPipPip
  • Group: Premium Member
  • Joined: Sep 17, 2004
  • Posts: 1008
So I'm sick for some reason. Still trying to work on Heart Stealer  tho i'm not progressing well. Looking at wednesday/thursday to post a build.
 
i caught a bug too, haven't done much outside of 'ideas'
 
whew
http://angrygeometry.wordpress.com
  • Avatar of sambr
  • Pip
  • Group: Member
  • Joined: Aug 7, 2012
  • Posts: 193
hope you guys get better! i have an aunt coming over from abroad/school this week so hopefully i can cram everything i need into my free time
  • Group: Member
  • Joined: Sep 9, 2013
  • Posts: 20
hope you guys get better! i have an aunt coming over from abroad/school this week so hopefully i can cram everything i need into my free time
 
Thanks! I took some meds and I'd feeling alittle better. I hope you get enough time to work.
  • Administrator
  • PipPipPipPipPipPipPipPip
  • Group: Premium Member
  • Joined: Oct 30, 2005
  • Posts: 2533
Get well soon man. I guess all of us are having time issues, i have exams this week. :(