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 - lixobags

Pages: [1]
1
Hello,

New to Unity here, Im currently trying to adjust a script i purchased and was hoping someone can help me out here.

The current script contains "InputGetAxis" where if you press up or down it moves the car forward and backwards.

***************************************************************************************************************
void FixedUpdate()
{
if (!Enabled)
return;

#region UserInput
float vertical = Input.GetAxis("Vertical"); //Forward & Backward drive input
float horizontal = Input.GetAxis("Horizontal"); //Angular velocity control input
float space = Input.GetAxis("Jump"); //break control input
#endregion

if (vertical > 0)
CurrentEngineAcceleration = Acceleration * vertical;
else CurrentEngineAcceleration = (Acceleration * vertical) * BackwardAccelerationFactor;
*****************************************************************************************************************

What i would like to know is, how do you go about allocating an NGUI button to the work as Input Manager "Vertical" can you do this or no?

Thanks for the help if you can

2
NGUI 3 Support / In-Game Store Inquiry
« on: July 22, 2014, 01:34:18 AM »
Hello,

New to NGUI

How do you go about making an in-game store with NGUi?
Are there any sample scripts that i can look at to understand how to set this up?

ie

Create a store with 3 items (Gold) and they are different values.  When you click them it changes the users overall gold total

I can change the gold value with 1 item in the store but when you start getting multiple items in the store, what NGUI script do you use to manage all the different items and values?
and how?

Sorry if this is a super newbie question

Pages: [1]