简体   繁体   中英

corona sdk xScale in transition.to

How to make object big by xScale in transition.to for a period of time this is my line code

 transition.to(object, {time = 200, radius = 3, alpha = 1, xScale = 1.4, yScale = 1})

let's say I want this happen for 5 seconds then return to the default size xscale =1 and yscale = 1 .

You can use delay parameter to begin the second transition after x miliseconds. Look at docs: http://docs.coronalabs.com/api/library/transition/to.html

transition.to(object,{time=200,radius=3,alpha=1,xScale=1.4,yScale=1}) 
transition.to(object,{time=200,radius=3,alpha=1,xScale=1,yScale=1, delay=5000}) 

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM