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

Pages: [1]
1
Support / Re: Sprite from texture resolution
« on: November 11, 2017, 03:25:02 pm »
Using SpriteCollection and with a correct setup on the camera its working fine.

Thanks

2
Support / Sprite from texture resolution
« on: November 03, 2017, 06:11:44 pm »
Hi there,

Using tk2dcamera I put pixels per meter 100

and I'm using tk2dSpriteFromTexture... one image with 800x600 texture

how to make my image stay on covering the entire screen? I want one screen with 800x600 size.

Thanks

3
Support / Re: Window Script
« on: November 01, 2017, 01:06:07 pm »
For a while I'm using this solution:

GameObject.Find ("Window").SetActive(false);

4
Support / Re: Window Script
« on: October 29, 2017, 12:10:56 pm »
With this:

      mywindow = GameObject.Find ("Window").GetComponent<tk2dUILayout>();

I'm able to acess the component window, my question is, How to hide/show the window?

5
Support / Re: Window Script
« on: October 29, 2017, 11:58:04 am »
With this line:

   Button1 = GameObject.Find("ToggleButton1").GetComponent<tk2dUIToggleButton>();

I can acess the button with the class tk2dUIToggleButton, what is the name of the class for the Window?

6
Support / Window Script
« on: October 28, 2017, 09:17:13 pm »
Hi

I'm using Window script from 2dtoolkit,

How to hide/show the window with all objects?

I need to know the class name of window script, to hide and show the window on a button.

See image:
https://imgur.com/2omAyIG
https://imgur.com/ZnKzLuH


Thanks

7
Support / Re: CreateProfile 2dtk UI
« on: November 23, 2015, 11:43:57 pm »
You can use 1 tk2dUIToggleButton per each ListBox item and tk2dUIToggleGroup to allow you to select only one.

Thank you for pointing a turn around!

I'm able to use ToggleGroup and I can check the current selected object/index.

Do you know how to change the ToggleButton caption?

8
Support / CreateProfile 2dtk UI
« on: November 22, 2015, 04:01:46 pm »
Hello,

I'm using a List of strings to store the information of the player of my game in the memory of the application.

See the image in attach or in this link:
http://postimg.org/image/z173i1fv5/

What component of 2dtk UI can be used for a ListBox? I need a component that stores a list of players and I can select one of them with the mouse, and will be an item selected as index.
      
My code:

Code: [Select]
List<string> MinhaLista = new List<string>();
//PlayerName
//level 0
// FullScreen
// 100
// 100
MinhaLista.Add(playername);
MinhaLista.Add("1");
MinhaLista.Add("FullScreen");
MinhaLista.Add("100");
MinhaLista.Add("100");

Thanks

9
Support / Re: Box trimmed - Simple Collision
« on: November 21, 2015, 01:05:46 pm »
After putting one RigidBody for earch object now its working thank you!

I taked a look in this video fo finish my sample:
https://www.youtube.com/watch?v=xwLYy1yEerY

10
Support / Box trimmed - Simple Collision
« on: November 17, 2015, 04:47:16 pm »
Hello,

How are you?

I'm justing trying to understand the basics of collision with 2D Toolkit.

I have two sprites and I'm able to move the player with a script, the question is... When I imported the sprite at Sprite Collection I put it as box trimmed, When a sprite get above the other, how to detect the collision event and give a command?

My code:
Code: [Select]
~using UnityEngine;
using System.Collections;

public class FishMovement : MonoBehaviour {

public float speed = 0.5f;

void OnCollisionEnter(Collision collision)
{

//if (collision.gameObject.tag == "Eletric") {
Application.Quit ();
// }
}

// Use this for initialization
void Start () {

}

// Update is called once per frame
void Update ()
{
if (Input.GetKey(KeyCode.LeftArrow))
{
transform.position += Vector3.left * speed * Time.deltaTime;
}
if (Input.GetKey(KeyCode.RightArrow))
{
transform.position += Vector3.right * speed * Time.deltaTime;
}
if (Input.GetKey(KeyCode.UpArrow))
{
transform.position += Vector3.up * speed * Time.deltaTime;
}
if (Input.GetKey(KeyCode.DownArrow))
{
transform.position += Vector3.down * speed * Time.deltaTime;
}
}
}


I've already added a RigidBody at the Sprite but its not working...

Greetings

11
Support / Re: 2D Toolkit Basic UI sample
« on: October 04, 2015, 02:54:11 pm »
Thank you its working!!!

12
Support / 2D Toolkit Basic UI sample
« on: October 03, 2015, 02:20:32 pm »
Hello

I'm trying to understand the basics of 2D Toolkit Basic UI sample.

My question is, Where is the source code event of the NextPageButton? see this image:

Instead of the event NextPage I want to change de source code of this button to close the game application.

For example:
 Application.Quit();

Regards,
IronQuark

13
Support / Re: About X,Y
« on: October 11, 2013, 10:54:31 pm »
You move the sprite the same way you move anything in Unity.
Something like this?
http://answers.unity3d.com/questions/173352/move-a-ball-using-keybored.html

Thank you its working!!!

14
Support / About X,Y
« on: October 10, 2013, 05:55:40 pm »
Hello

After opening spider.unity demo

How I can create a script in c# and set to control x and y of the position of the spider sprite? using for example the keyboard to move the sprite....

Regards

Pages: [1]