문제

I'm having a bit of trouble with Corona's transitions with easing.

Here is my code:

transitionTime = 120
transition.to( newDot, { time = transitionTime, y = newDot.destination_y, transition=easing.outBounce } )

Unfortunately, it's not actually bouncing at all. It just seems to be moving normally. I'm not sure if I'm doing something wrong or if something else needs to be done before the easing transition will display.

Any help would be greatly appreciated!

Thank you!

도움이 되었습니까?

해결책

I'm pretty sure that transition API never worked properly. What I always would do is make 2 transitions with one having a slight delay like so:

transition.to(newDot, {time=80,y = newDot.destination_y - 50})
transition.to(newDot, {delay=80, time=40, y=newDot.destination_y})

Just work with something like that so just change up the numbers to your liking. Hope this helps.

다른 팁

I think you are using old corona version.The easing properties inBounce, outBounce, inOutBounce, outInBounce are applied only in new versions of corona. These properties will not work in old one.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top