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.

Topics - wagenheimer

Pages: [1]
Support / tk2dTextInput on Windows 8 Tablet
« on: March 11, 2015, 11:39:49 am »

I am testing my game on a Windows 8 Metro Tablet but the tk2dTextInput does not display the virtual keyboard when necessary.

Is there a fix to it? I'm using Unity 5.


I created a build for testing on Windows Store/Windows Phone Simulator and the virtual keyboard seems to be not showing!

Is there anything I can check?

Support / Resolution
« on: November 21, 2014, 08:04:29 pm »
I do use Fit Height to all my cameras and it works very well...

But... I want that if the Aspectio Ratio is lower than 1,33, instead of using Fit Height it keeps the 1,33 aspect ratio and then scale to fit the screen... How can I achieve this?


I suggest adding a generate polygon button when creating collision of sprites on a sprite collection.

There is an algorithm which is very easy to implement and gives good results,  "Graham's (1972) point elimination algorithm", basically you get all non alpha points of the image, runs the algorithm on it and it returns the final polygon! =)

I have ton of sprites and have to create all polygons by hand! This would be an excellent addition to 2DToolkit! =)

Is this possible?

Support / Changing Color is Slow
« on: October 10, 2014, 03:52:47 am »
I have +- 200 child sprites, and I need there sprites to match the parent sprite color.

In fixedupdate I have this :

Code: [Select]
childSprite.color = parentSprite.color;

But this seems to be very slow, please see the attached profiler screenshot.

Why is this code so slow? How can I change it to improve it?


Support / Fit Height - Which resolution?
« on: July 08, 2014, 05:26:54 pm »
I'm using tk2dCamera with Fit Height Override!

I'm using a tk2dSprite as a Background. My question is :

I want to support alll Iphone/Ipad/Windows and Android Tablets resolutions. I keep the usable area of my background to 4x3 proportion so I will not have any problem, with FitHeight it will cut out the borders which are not visible. My question is :

Which resolution (proportion and pixels) should I create my backgrounds to fit most of available devices (and avoid black borders)? Anybody have an advice?

Support / Saving and Loading TileMaps
« on: June 25, 2014, 08:59:25 pm »

I didn't found in editor how to Save/Load a Level using Tk2d TileMap!

Do I need to create a Scene for Each Level, or it's possible to load levels dynamically?

Support / Change Sprite Collection on Runtime
« on: June 04, 2014, 05:59:46 am »
I need to change my sprite Sprite Collection in Runtime... what is the correct way of doing this?

I need to pass tk2dSpriteCollectionData do SetSprite... Should I put all my tk2dSpriteCollectionData on Resources Folder and use Resources.Load() when needed?

What is the correct way of doing this?

Support / Shine effect like this one!
« on: May 06, 2014, 02:49:54 pm »
How can I achieve a Shine effect like this one using TK2D?

You can see it on this video : Foward it to 2:00

You can see a Shine effect (It comes from Upper Left and goes to Down Right) when the mouse is over the tokens.

I can simulate something similar using a Additive copy of the sprite, clipping it, but this way I can only animate from up to down or left to right, I cannot animate it animate it diagonally.

Anybody have any idea of how can I achieve an effect like that?

Support / Help with Camera
« on: April 14, 2014, 02:25:38 pm »
I need this behavior is this possible?

- I created the game using 1920x1080 resolution. 1,77 proportion.
- If the proportion is smaller, I want it to "cute out" the borders out to fit the proportions! This already works, I set "Fit Height" on Tk2dCamera.
- But, if the proportion is bigger, actually it add black borders to it, and I do not want it! I want instead of adding Black Borders that it Stretch the current Camera to fit the whole screen.

To sum it up :
- Keep the Height Proportion, cutting out the borders if is need, or stretch it if need instead of adding black borders.

Is it possible?

Support / When the Sprite Textures are Loaded?
« on: April 11, 2014, 05:34:30 am »
I do have a sprite which I use as Background Texture.

But, I use the same scene for all my levels, and I change this Sprite Texture on my Custom Level Loading function which executes on the Start Method of the scene!

What did happens under the hood?

1) It loads the current sprite texture (already set on editor on design time), and after load the new texture I set for it? (Two Texture on Memory)
2) It will not load the default sprite texture, only the texture I set for it on Start function?

How to achieve the 2?


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?


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?


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.

Pages: [1]