Hello Guest

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - g0tNoodles

Pages: [1]
1
Support / Using send message to set game variables.
« on: December 20, 2013, 12:25:21 am »
I'm trying to use a drop down menu to set the volume of my game. I have 11 items (0-100) in my index and would like to use the send message function to set the volume as well as save the variable in playerprefs.

In my own script, what would I use to receive the message of the change from the "tk2dUIDropDownMenu.cs" script and set my volume to that? I understand how SendMessage normally works but I am not sure how it works this way around.

Thanks.

2
Support / Re: Creating a main menu
« on: December 13, 2013, 01:52:01 am »
Okay, thanks.

One more question. I am using a slider to let the player control the volume of the game. The workaround I have done is not very nice and I have had to change code in the actual scrollbar script to make it work (using player prefs to set it to the right position on the bar when the player restarts the game). Also, the slider is able to be clicked anywhere on it and the bar will move to that amount, that's fine; however, it seems to be one click behind. I click it at 70% it does not move. I then proceed to click it at 30%, it moves to the 70% position.

Any chance of helping me use the slider and my own script to access the "percent" variable to allow the user to control the volume and to make sure that when the game reloads, the slider tab (and fill bar) are loaded at the correct position? I assume it is very easy but I just cannot seem to work it out!  :-[ :o

3
Support / Creating a main menu
« on: December 11, 2013, 03:32:50 pm »
Hello, I would like to use this to create a 2D main menu for my game. One reason I purchased this was because it is for 2D and I always have trouble scaling my menus for different resolution, along with finding it long-winded at times.

Is there something built in to this kit to allow this to happen without me really having to code anything? I have already tried using 3D objects to make my menu and while it works okay, it's not great. I would like something that auto-scales with the resolution.

Cheers

Pages: [1]