Hi, i have the same problem.
In my case without imagesheet the animation between scene return smooth.
The animation betwen scene return smooth also if i set the alpha of imagesheet with alpha 0.
Hi, i have the same problem.
In my case without imagesheet the animation between scene return smooth.
The animation betwen scene return smooth also if i set the alpha of imagesheet with alpha 0.
Hi Rob,
function nextWord() if isMessageActive == false then keyboard.resetWord() wordCounter = wordCounter + 1 if wordCounter \<= maxWordsCounter then removePrevImage() drawNextImage() else endGame() end end end
function removePrevImage() removeImage = currentImage function t() removeImage:removeSelf() removeImage = nil isMoving = false end transition.to(removeImage, {time = 1000, x = -500, onComplete = t}) end
function drawNextImage() currentImage = display.newImage(words[wordCounter].imageLocation, 500, 45) currentImage:setReferencePoint(display.TopLeftReferencePoint) currentImage:scale(0.5, 0.5) currentImage.word = words[wordCounter].word currentImage:addEventListener("tap", onTapImage) transition.to(currentImage, {time = 0, x = 0}) group:insert(currentImage) end
So basically nextWord creates a new image outside of the screen (this was because before I slided it into the screen but now it just pops up i.e. time = 0) and remove the old one.
Best regards,
Tomas
Well I don’t see anything that would cause issues, though I don’t know that passing a time of 0 to transition.to would really do. You could comment that out since it doesn’t do anything and just set the currentImage.x and currentImage.y to 0.
Do these functions live outside of createScene()? Do you have group defined where they can see them?