Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Transition update 5/12/2017
Started by remiduchalard Dec 05 2017 01:37 AM

2 replies to this topic
transition

Best Answer Rob Miracle , 05 December 2017 - 10:52 AM

The two fixes involve fixing the convenience methods like .fadeIn() which only should work on the alpha property was also setting default values for things like x and y. The other fix involves removing a small delay if you set the delay to 0.

 

This has nothing to do with running a transition repeatedly. 

 

Rob

[TOPIC CONTROLS]
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

remiduchalard

[GLOBAL: userInfoPane.html]
remiduchalard
  • Contributor

  • 306 posts
  • Corona SDK

Hello,

Today I have seen an update who improve transition: 

 

  • Framework: Fixed convenience methods of transition library
  • Framework: starting transitions instantly if 0 passed as delay

 

It's look very interesting for the first line, but what does it mean?

Does it mean some transition won't cancel for any reason (when it's canceled it s probably logical but does it mean that won't happen anymore?)

Does it avoid us to have this kind of code to have infinite loop who don't cancel for no good reason?

object.fill.effect = "filter.exposure"
object.fill.effect.exposure =0
local objecttransition=function(obj)
	if obj~=nil then
		transition.to(obj,{delay=value,time=value2,exposure=0.7,transition=easing.continuousLoop, onComplete=objecttransition } )
	end
end
objecttransition(object.fill.effect)


[TOPIC: post.html]
#2

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,409 posts
  • Enterprise

  Best Answer

The two fixes involve fixing the convenience methods like .fadeIn() which only should work on the alpha property was also setting default values for things like x and y. The other fix involves removing a small delay if you set the delay to 0.

 

This has nothing to do with running a transition repeatedly. 

 

Rob



[TOPIC: post.html]
#3

remiduchalard

[GLOBAL: userInfoPane.html]
remiduchalard
  • Contributor

  • 306 posts
  • Corona SDK

Thank you @rob :)

You have always answer that's wonderful 




[topic_controls]
[/topic_controls]