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

Pages: [1]
1
Support / Re: tk2dUIItem array
« on: February 06, 2014, 07:51:09 pm »
Ok, looks like i found solution.
I use OnDown instead OnClick and than in "targetClicked" get pressed stance
Code: [Select]
targets[i].IsPressed

2
Support / tk2dUIItem array
« on: February 06, 2014, 07:09:29 pm »
Hello,
I have array of tk2dUIItem:
Code: [Select]
public tk2dUIItem[] targets;
Code: [Select]
void OnEnable(){
for(int i = 0;i < targets.Length; i++){
targets[i].OnClick += targetClicked;
}
}

Code: [Select]
void OnDisable(){
for(int i = 0;i < targets.Length; i++){
targets[i].OnClick -= targetClicked;
}
}

How can I detect which button was pressed in my "targetClicked" method?
Thanks.

3
Support / scale background sprite
« on: December 18, 2013, 03:48:44 pm »
Hello,
How can I scale background sprite to screen size, without setting camera to "stretch to fit", because I need to scale only background, but not all elements on scene.
Thanks.

4
Support / Re: visible/invisible area on scene
« on: December 18, 2013, 03:46:39 pm »
Thanks

5
Support / visible/invisible area on scene
« on: December 17, 2013, 03:16:37 pm »
Hello,
How can i create visible/invisible areas on scene for some sprites like on this scheme http://s14.postimg.org/pcraktiu9/Image003.png

Sprites can moves up and down, but when  some part of sprite is on invisible area so this part should not be visible.
Thanks.

6
Support / Re: how to set color for sprite?
« on: October 09, 2013, 06:35:39 pm »
ok, Thanks, i missed this.

But how can I make sprite grayscale?

7
Support / how to set color for sprite?
« on: October 09, 2013, 06:16:57 pm »
I try to change sprite color:
sprite.color = new Color(71,71,71,1);
but it's doesn't work.
How can I change sprite color?
Thanks

8
Support / Re: box collider from runtime
« on: October 09, 2013, 04:49:24 pm »
I find it)
gameObject.AddComponent();

Thanks )

9
Support / box collider from runtime
« on: October 09, 2013, 04:28:47 pm »
Hello.
I have created few sprites from runtime. How can I create box collider for this sprites from runtime?
Thanks.

10
Support / Re: Load sprite from resources
« on: October 03, 2013, 06:04:40 pm »
ok, looks like I asked nor very clear.
I have a few hundreds  of .png files in Resources folder.
How can I load one of these files(depending of my game lvl) to the scene?
Thanks.

11
Support / Load sprite from resources
« on: October 03, 2013, 04:51:24 pm »
Hello.
I have tk2dSprite object. How can I set sprite for this object from resources?
I need something like Resources.Load(file_name);
Thanks.

12
Support / Re: vertical progress bar
« on: September 28, 2013, 11:56:58 am »
There is way to create progress bar from spite. When i convert clipped sprite to sprite, progress bar doesn't work (

13
Support / vertical progress bar
« on: September 28, 2013, 09:40:56 am »
Hello, how can I create vertical progress bar? Thanks

14
Support / Re: positioning of element
« on: September 16, 2013, 01:44:49 pm »
Thanks

15
Support / positioning of element
« on: September 16, 2013, 12:43:17 pm »
Hello, I am new to 2dToolkit and Unity3d.
I want to ask, how can I positioning some elements(sprites, button etc) to the left side of the screen not depending on screen resolution. Thanks.

Pages: [1]