I have a player object moving upwards. On the level layout there are letter objects scattered around, ie.: AABBCD. Each is placed higher then the other. So A is at the bottom and the D is in the top.
Every tick I want to check what 4 letters will be the next letters that player can collect - what 4 next letters are now higher then the player object. These 4 letters I want to print. I implemented it already, but somehow it's not working for last 3 letters or less. It should work like this: if less then 4 letters are ahead of the player, display just 3 letters, etc. In my implementation if there is just one letter ahead (ie.: E) it creates string: EEEE, and not: E.
I don't know how to make it work. Here is my .capx: http://www.sendspace.com/file/4y3wcj