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

Pages: [1]
1
Support / Re: Use tk2dUIItem or tk2dButton
« on: September 17, 2014, 06:12:44 pm »
I am going to try and work off the UIDemo tonight and re-build the buttons.

I could send you the Unity project, it is small and I am just starting to beta it.  I am using Unity 3.5 if that helps.

2
Support / Re: Use tk2dUIItem or tk2dButton
« on: September 17, 2014, 05:29:50 am »
I am also getting a second tk2dUIManager created in my game, what could be creating it?

3
Support / Re: Use tk2dUIItem or tk2dButton
« on: September 17, 2014, 04:55:18 am »
Thanks for the advice, the scale of the button in the UIdemo works fine for me.

4
Support / Re: Use tk2dUIItem or tk2dButton
« on: September 13, 2014, 06:13:48 am »
Just a question for myself.  I am having this problem on my iphone game.  While testing on my iphone, when I click on my UIItem object there is that .5 second delay.  That delay is not happing when I test the game in Unity.  Could the delay be happening because of the iphone?

5
Support / Re: Use tk2dUIItem or tk2dButton
« on: September 10, 2014, 03:09:59 am »
So I have been debugging at lunch today and the delay is more .4 - .6 seconds. Most times it happens with the right button, the left button seems to work fine but I can get the right button not to have the delay.  It is crazy and I may need to move on to another part of the game for now and come back. Below are some of my "Debug.log" output.

veLeft called 8.578333
Moving Left 8.608844

Moving Left 9.208621
MoveLeftReleased called 9.208621
MoveRight called 9.60812
Moving Right 9.641507

Moving Right 10.57484
MoveLeftrelease called 10.57484
MoveLeft called 10.6417
Moving Left 10.67814

Moving Left 11.50854
MoveLeftReleased called 11.50854
MoveRight called 11.54166
Moving Right 11.57491

Moving Right 12.27498
MoveLeftrelease called 12.27498
MoveLeft called 12.34258
Moving Left 12.37466

Moving Left 13.04129
MoveLeftReleased called 13.04129
MoveRight called 13.77496
Moving Right 13.80823

Moving Right 14.74142
MoveLeftrelease called 14.74142
MoveLeft called 15.40811
Moving Left 15.4414

Moving Left 16.97791
MoveLeftReleased called 16.97791
MoveRight called 17.34202

6
Support / Re: Use tk2dUIItem or tk2dButton
« on: September 09, 2014, 06:37:25 am »
I have my UIItems targeting my Player object and I am access a method called "MoveLeft on "On Down" and a method called "MoveLeftRelease"on "On Release".

Here is my code from my player script:
Code: [Select]
void Update ()
{

if (moveLeft)
{
transform.localPosition = new Vector3(transform.position.x + thePlayerSpeed * Time.deltaTime, transform.position.y, transform.position.z);
}
}

public void MoveLeft()
{
moveLeft = true;
}

public void MoveLeftRelease()
{
moveLeft = false;
}


7
Support / Use tk2dUIItem or tk2dButton
« on: September 08, 2014, 08:54:02 pm »
I am having a little bit of a problem and I hope this has not been discussed in another forum. 

I wanted to know if it is better to use UIItem or the tk2dButton class for a button in my game?  I am using 2 buttons to move a character either to the left or to the right.  Right now I am using UIItem and it works but there is a delay when I click on either of the buttons.  When I click either of the buttons there is a 1 second delay before the character starts moving. 

I need the player to move while a player is pressing either of the buttons but I can't get that to work with tk2dButton, it only calls my method once.

Thanks

Pages: [1]