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

Pages: 1 2 [3]
31
Support / Which one is faster?
« on: April 11, 2014, 02:13:52 am »
Which one is faster to order sprites in a 2D game?

- Change the Sprite Z
- Change the Order in Layer?

Thanks!


32
Support / Re: Circular Progress Bar
« on: April 08, 2014, 03:49:29 am »
Any progress on this? I will really need something like this!

33
Support / Re: SpriteCollection in Resources
« on: February 19, 2014, 01:48:26 pm »
I need to change the SpriteCollection on Code.

I added a variable public tk2dSpriteCollectionData spriteCollection where I set the SpriteColletion in Editor.

So after I can use :

spriteItem.SetSprite(spriteCollection, id);

But If I use this variable, all source images from SpriteCollection seems to be loaded. How the correct way of doing this?

34
Support / Re: Make SlicedSprite Resize to Screen Size
« on: January 17, 2014, 05:31:47 pm »
Problem solved! =)

gameObject.GetComponent<tk2dUILayout>().SetBounds(new Vector3(tk2dCamera.Instance.ScreenExtents.xMin,tk2dCamera.Instance.ScreenExtents.yMin,0), new Vector3(tk2dCamera.Instance.ScreenExtents.xMax,tk2dCamera.Instance.ScreenExtents.yMax,0));

35
Support / Re: Make SlicedSprite Resize to Screen Size
« on: January 17, 2014, 05:02:42 pm »
I can resize the sprite using

Code: [Select]
SlicedSprite.dimensions = new Vector2(tk2dCamera.Instance.ScreenExtents.width,SlicedSprite.dimensions.y);

But how to resize the tk2dUiLayoutScript instead of the sprite? I need to keep everything aligned after resizing the sprite. Is this possible?


36
Support / Make SlicedSprite Resize to Screen Size
« on: January 17, 2014, 04:27:53 pm »
I need an advice!

My TK2dCamara Native Resolution is (1365/768) and Auto Scale = Fit Height and FitMode = Center.

I have a SlicedSprite and I want it to resize to fit the actual view Width, how to I calculate the right size considering the actual aspect ratio?

Thanks!

37
Support / Bug Ping Pong Animation
« on: December 09, 2013, 03:10:42 pm »
Well... If I create a Ping Pong animation with only 1 frame, I got an error when running. Even on the editor, If I create a animation with a single frame, change it to Ping Pong and click on Play I got an error and the Animation Editor closes.


38
Support / Re: Extracting tk2dSpriteCollectionData from tk2dSpriteCollection
« on: November 25, 2013, 05:36:04 pm »
Well... I need to change the SpriteCollection from the sprite in RunTime, how this is possible without breaking anything (SetSprite requires a SpriteCollectionData for this)?

39
Support / Re: Background Question
« on: August 31, 2013, 08:02:21 pm »
And the other question about the Original Texture vs Sprite Size?  :)

I must be doing something very wrong!

40
Support / Re: [QUESTION] 2DTK Camera Has Me Completely Confused!
« on: August 31, 2013, 02:52:56 am »
Using Fit Height is it possible to Right Align instead of Center it?

41
Support / Re: Background Question
« on: August 31, 2013, 02:02:31 am »
And why it's create on my scene a Sprite and a tk2dSpriteFromTexture - background01?

I must keep both?

42
Support / Re: Background Question
« on: August 31, 2013, 02:01:09 am »
And there is a way to resize the background to it's original size?

My background is 1280x720 (My camera also has this size)... But when I create a sprite from it, I got a 1024x512 texture.

How to resize it easly to it's original size and make it fits all my camera view?

Pages: 1 2 [3]