A Fuse Powered Company

Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Missing Composer.* transition effects
Started by ingemar Jun 13 2014 10:22 PM

7 replies to this topic

Best Answer davebollinger , 14 June 2014 - 07:41 AM

try this, vary to suit: [edited to clarify]


composer.effectList["panelDown"] = {
  sceneAbove = false,
  concurrent = true,
  from = {
    yStart = 0,
    yEnd = display.contentHeight - display.screenOriginY*2,
    transition = easing.outQuad
  },
  to = {
    xStart = 0,
    xEnd = 0,
    yStart = 0,
    yEnd = 0
  }
}

composer.gotoScene("theOriginalUnderneathScene", {effect="panelDown",time=500})

--

[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

ingemar

[GLOBAL: userInfoPane.html]
ingemar
  • Enterprise
  • PipPipPipPipPipPip
  • 2,443 posts
  • Jedi

There are some missing transition effects that have been bugging me for a long time.

 

What I want to do:

(a.) Slide a new scene from the bottom over the current scene. I can do this with the "fromBottom" effect.

(b.) Slide the new scene back down revealing the old scene behind it. 

 

(b.) isn't possible to do.

 

The transition effect "fromTop" will slide the "old" scene down from the top. "slideDown" will do the same and also push the other scene down.

 

Both of these effects are visually incorrect as the old scene is perceived as already being behind the new scene. What is required is to have an effect where the scene being transitioned to is put behind the currently visible scene and then have that scene slide down (or in whichever direction) to reveal the other scene behind.

 

The only visually acceptable workaround I have at the moment is to do a "crossFade" transition for (b.).



[TOPIC: post.html]
#2

ingemar

[GLOBAL: userInfoPane.html]
ingemar
  • Enterprise
  • PipPipPipPipPipPip
  • 2,443 posts
  • Jedi

BTW. I know that this can be achieved with the overlay functions, but I'd like to have these effects for normal scenes as well as the hide/show events are not called for the parent scene when using overlays.



[TOPIC: post.html]
#3

davebollinger

[GLOBAL: userInfoPane.html]
davebollinger
  • Basic
  • PipPipPipPipPipPip
  • 347 posts
  • Jedi

  Best Answer

try this, vary to suit: [edited to clarify]


composer.effectList["panelDown"] = {
  sceneAbove = false,
  concurrent = true,
  from = {
    yStart = 0,
    yEnd = display.contentHeight - display.screenOriginY*2,
    transition = easing.outQuad
  },
  to = {
    xStart = 0,
    xEnd = 0,
    yStart = 0,
    yEnd = 0
  }
}

composer.gotoScene("theOriginalUnderneathScene", {effect="panelDown",time=500})

--



[TOPIC: post.html]
#4

ingemar

[GLOBAL: userInfoPane.html]
ingemar
  • Enterprise
  • PipPipPipPipPipPip
  • 2,443 posts
  • Jedi

:blink: Did I miss some secret documentation?

 

It's fantastic if it's possible to create custom transitions!

 

Thanks!



[TOPIC: post.html]
#5

davebollinger

[GLOBAL: userInfoPane.html]
davebollinger
  • Basic
  • PipPipPipPipPipPip
  • 347 posts
  • Jedi

possible=yes, documented=no.  (use legacy storyboard as doc = same)



[TOPIC: post.html]
#6

ingemar

[GLOBAL: userInfoPane.html]
ingemar
  • Enterprise
  • PipPipPipPipPipPip
  • 2,443 posts
  • Jedi

I tried it and it works. This is great.

Thanks for the tip!

 

BTW. I dumped the table and out came a bunch of fun stuff  :P



[TOPIC: post.html]
#7

davebollinger

[GLOBAL: userInfoPane.html]
davebollinger
  • Basic
  • PipPipPipPipPipPip
  • 347 posts
  • Jedi

yep, tho silly that we have to "hack" our way into this stuff

wish they'd open-source ALL the lua-based api's (as they did w widgets 2)

 

it can be an eye-opener to peruse what's already been legacy'd (sprite/widget1/storyboard/), pretty easy to spot certain bugs, and there are published apps out there with them!  (myself included - i feel like i need a shower every time i look at the original storyboard source [which i've since heavily modifed]).  we need access to fix it ourselves, after all it's our necks on the line when we publish.

 

just my two cents

 

maybe i need a bigger license.  are you, with an enterprise license, provided the lua source for such libs? (or are they provided precompiled)



[TOPIC: post.html]
#8

ingemar

[GLOBAL: userInfoPane.html]
ingemar
  • Enterprise
  • PipPipPipPipPipPip
  • 2,443 posts
  • Jedi

Nope. No special treatment... I'm out in the cold like everybody else.




[topic_controls]
[/topic_controls]