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

Pages: [1] 2
1
Support / Re: Load images from url ?
« on: December 05, 2012, 04:55:07 pm »
i just trying to implement facebook friends avatars inside game.
any ideas, how i can do it ?

2
Support / Re: Load images from url ?
« on: December 04, 2012, 04:40:25 pm »
then another question.
what if i have to load multiple images from web.
should i use different collection for each image? this lead to extra draw calls
or
can i create one collection for all loaded images? its possible to add images in collection at runtime?
thanks

3
Support / Load images from url ?
« on: December 04, 2012, 11:41:56 am »
How i can load images (png or jpg) from remote website and use it with 2d-toolkit?

found only this solution: http://docs.unity3d.com/Documentation/ScriptReference/WWW-texture.html

4
Support / Re: Two button on same place
« on: August 03, 2012, 02:42:19 pm »
oh sorry. you right.
both buttons overlaped.

5
Support / Two button on same place
« on: August 02, 2012, 03:46:18 pm »
i have two buttons.
Button A activates button B.
button B appear on same coordinates (x,y) but with lower z.
Button B box collider greater that button A collider.
When i hit button B, button A also activated.

how i can stop click event or block it activation of button A when i click on button B?

6
Support / Re: How can I repeat texture on sprite several times?
« on: August 02, 2012, 11:46:45 am »
thats what i need

7
Support / Re: How can I repeat texture on sprite several times?
« on: July 31, 2012, 04:26:39 pm »
i have map with roads and paths.
alot of roads and paths.
should i create sprite batcher for every road part?
or real tiling will be done soon?

8
Support / Font problems
« on: July 30, 2012, 05:41:16 pm »
i made one atlas for all ingame fonts.
when i create textmesh - everything is fine. but when i trying to change font - everything goes pink.
cant fix this problem.

1. create textmesh
2. change font
3. pink squares and nothing help.

what i do wrong at this time?

p.s project attached.


EDIT: Please don't post projects in here. Use the private support forum when you need to distribute projects.

9
Support / Re: Tint & Loop Sprite
« on: July 27, 2012, 11:13:59 am »
made this script.
itween (flash compatible).
with settings.

Code: [Select]
using UnityEngine;
using System.Collections;

public class TintLoop : MonoBehaviour
{

public Color Color;
public float Duration;

void Start ()
{
tk2dSprite sprite = GetComponent<tk2dSprite>();
Hashtable options = new Hashtable();
options.Add("from", sprite.color);
options.Add("to", Color);
options.Add("time", Duration);
options.Add("OnUpdate", "updateSpriteColor");
options.Add("looptype", iTween.LoopType.pingPong);
options.Add("easetype", iTween.EaseType.linear);
iTween.ValueTo(gameObject, options);
}

void updateSpriteColor(Color color)
{
tk2dSprite sprite = GetComponent<tk2dSprite>();
sprite.color = color;
}


}

10
Support / 2 Draw calls on 2 identical sprites
« on: July 26, 2012, 02:52:07 pm »
i dont know what im doind wrong. can someone point me how i can reduce draw calls ?
i use one atlas for same sprites.
its only 2 sprites in scene both from one atlas and its require 2 draw calls.
each new enabled element in scene increase draw call by 1.

archived project attached.

p.s. xp service pack 3, unity 3.5.4f3


Edit: unikron: removed attachment. Post in the private support are if you'd like to post source.

11
Support / Re: Sprite blendmode
« on: July 26, 2012, 11:24:09 am »
thanks alot.

12
Support / Re: Sprite blendmode
« on: July 26, 2012, 10:23:35 am »
found how to use additive blending. changed atlas meterial shader to "particle/additive".
and its change blending of all sprites from this atals.

i realy don't know how to use normal and additive sprites in one atlas.
if you point me "how"
or maybe official 2D Toolkit tutorial would help alot to me and others in future.

13
Support / Re: Tint & Loop Sprite
« on: July 25, 2012, 04:40:03 pm »
I know a lot of people like HOTween, but you should also check out GoKit by Prime31 http://forum.unity3d.com/threads/133823-Prime31-GoKit-Tween-Library-Live
I was using HOTween, but recently switched over to this and I have to say the performance on mobile devices is superior.

GoKit support flash export?

14
Support / Sprite blendmode
« on: July 25, 2012, 12:56:40 pm »
Can someone point me.
How i can change sprite blend mode like "additive", "multiply" or "color dodge" ?
thanks.

p.s. im new to unity and 2D toolkit. former flash developer. search this forum and google for "2d toolkit blendmode" and didnt find anything useful.

15
Support / Re: Tint & Loop Sprite
« on: July 25, 2012, 12:53:43 pm »
HOTween works very well. thanks alots for that tip.

update: just tested "export to flash". Hotween doesnt work, throw errors. log attached. also made issue here http://code.google.com/p/hotween/issues/detail?id=35


@camelot10.

The Unity animation system won't correctly animate tk2dSprite colors / spriteswitches. The reason for it is that Unity Animation system only animates member variables and not .net properties. I have a few different snippets of code I use when I need to do this. A bit more explanation on your needs and I could probably suggest what to do here.

As 39thstreet says, HOTween is excellent and works perfectly. If you're more comfortable with something like that then that will just work out of the box.

i just want to animated tint of sprite from white to red color, infinite, yoyo like.

Pages: [1] 2