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

Pages: [1]
1
Support / Re: Trying to use arrays to change sprites
« on: August 10, 2016, 04:42:01 pm »
So there isn't a built in way to iterate through tk2D sprites in code?

2
Support / Re: Trying to use arrays to change sprites
« on: July 14, 2016, 12:51:30 am »
This picture may explain better.

.... Oops, no way to insert it.

Ok, so I'm trying to use an array to iterate through sprites. I want to apply the specific sprites within the editor.

In the array within the editor, the elements are specifically for Tk 2d Sprite. It is drag in to fill, or click the circle to choose from all of that type. When clicking, the dialog that pops up has no available Tk 2d Sprites, even though I have lots made.

They are in collections, of course. So how would I go about being able to apply specific tk2d sprites to fields within the editor?

Thanks

3
Support / Trying to use arrays to change sprites
« on: July 13, 2016, 09:14:31 pm »
Hello,

How does one make an array of sprites and be able to assign the different sprites in editor?

Here's what I've got, which gives me an array of Tk 2d Sprite in editor.

   public tk2dSprite[] hitSprites;

   // Use this for initialization
   void Start () {

      hitSprites = GetComponentsInChildren<tk2dSprite> ();
      
When trying to assign the sprites, the pop up dialog has none available.

Thanks

Pages: [1]