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

Pages: [1]
1
Support / Re: Alter Position as part of Animation
« on: April 24, 2014, 04:35:27 pm »
Voted it up!

In the meantime how would you suggest I go about doing it myself?

2
Support / Alter Position as part of Animation
« on: April 23, 2014, 06:05:22 pm »
I have a texture that remains the same but the position should change through an animation.  Is there a way to do this with 2dToolkit?

Thanks.

3
Support / Re: Scaling Sprite Not working
« on: March 10, 2014, 07:23:33 pm »
Its actually flashing now.  So if looks like it scales then jumps back up to full. 

4
Support / Scaling Sprite Not working
« on: March 10, 2014, 07:11:44 pm »
I am making a health bar.

So i have two tk2dSprite's  In code I want to adjust the scale of the tk2dSprite that is the fill.   I think I am doing everything correctly but it does nothing to the sprite at all:

Code: [Select]
public float scaleToSet = .5f;
tk2dSprite myBar;

// Use this for initialization
void Awake () {
Debug.Log (myBar);
myBar = (tk2dSprite)transform.GetComponent<tk2dSprite> ();
myBar.scale.Set (scaleToSet, 1.0f, 1.0f);
}


void Update () {


}

public void scaleX() {
myBar.scale.Set (scaleToSet, 1.0f, 1.0f);
Debug.Log ("WE SHOULD SCALE: " + scaleToSet);
}


I will be calling scaleX from another script.. but for testing on awake i tell it to scale to .5 and it does not do anything.   

Please help.

Pages: [1]