Hi all, first of all thanks for helping me, I’m stuck in this problem for a while now and I cannot see the light at the end of the tunnel.
I’m trying to make a endless runner game although it’s vertical, and I need my character to leave a trail with multiple colours, something similar to nyan cat or happy jump (http://ecx.images-amazon.com/images/I/7174yAbd4dL._SL500_.png). I’ve try to do so using the enterFrame
local r = display.newSprite(\_G.spritesImageSheet , {frames={\_G.spritesInfo:getFrameIndex("player\_jump\_tail\_1")}}) player.tail:insert(r) transition.to(r, {time=500, alpha=0, yScale=0.2})
with a code like above, but it’s not only not very performance to create a new image every frame and the use the transition to put the fade out, but also it’s not very smooth when the character go to high speed, i have some missing spaces between images.
Does anyone did something like this that wanna share? I can write the code, but I have no clue on how to create it logically.
Thanks again, it would be really helpful to get through this.
Juan Cruz