Storyboard API Questions

Update (regarding transition bugs):

The storyboard transition issues that were introduced after the “delay bug” was resolved are now fixed. The changes should be in one of the next few daily builds (keep an eye out for “Storyboard” in the daily build changelogs).
[import]uid: 52430 topic_id: 17828 reply_id: 95009[/import]

@mort or @bdjones: Have you submitted a bug regarding the snapshot issue (that you workaround by using a timer)?

If not, please submit a bug report with a test-case that shows the problem in action:

http://developer.anscamobile.com/content/bug-submission

That doesn’t sound right, so I wanna make sure that gets fixed.

Thanks! [import]uid: 52430 topic_id: 17828 reply_id: 95014[/import]

FYI:

We just checked-in an important storyboard update that should fix the transitioning bugs, and also introduces a couple new features. Here’s a description of the changes that will be in the next build (after 2012.772):

  • Fixed bug where certain transitions would behave incorrectly if there were off-screen objects.

  • Added new function: storyboard.loadScene( sceneName [, doNotLoadView] ), which is similar to storyboard.gotoScene(), but no transition is initiated (useful for pre-loading scenes).

  • Added two scene events: “enterBegan” (dispatched before scene transition occurs) and “exitEnded” (dispatched after scene has exited).

And for those interested, these updates address ticket casenums: 12827 and 12954

Once again, these changes will appear in the build that posts after 2012.772. [import]uid: 52430 topic_id: 17828 reply_id: 95272[/import]

awesome! Thank you so much for implementing those new API features…its great to know our requests are listened to! :slight_smile:
[import]uid: 122310 topic_id: 17828 reply_id: 95279[/import]

great !! this is what we, people from Mars, wait the most.

Tom [import]uid: 111283 topic_id: 17828 reply_id: 95281[/import]

I just checked for the “snapshot” bug in the latest available build (772). and it’s fixed! Thank you!

(One no longer must wrap a transition in a timer for it to work correctly!)


HOWEVER:

  • I am getting a zooming effect (only in the Corona Simulator) when using the “fade” transition.

-It works fine in the xCode simulator.

Odd, eh?

(I’ll see if it gets fixed in the “after 772” build.) [import]uid: 73951 topic_id: 17828 reply_id: 95305[/import]

I just tried out 773. Transitions are even worse now. Tableview, toolbar etc. are transitioning extra half width.

Plus there is a lot of problem with text. I reported that in another thread. [import]uid: 19297 topic_id: 17828 reply_id: 95425[/import]

Glad to here the bugs are getting ironed out, but any suggestions on making a functioning pop up window (that you can open more than once)?

The technique mentioned on page one of this thread doesn’t seem to work if you want it to open more than once (without breaking the app).

Thanks,
Todd [import]uid: 93674 topic_id: 17828 reply_id: 95517[/import]

I’m having some trouble with one particular scene in my app. I have 3 scenes:

title - a title screen
menu - level selection screen
game - gameplay related stuff

Everything’s been working relatively well, gameplay starts up how I need it everytime I re-enter the scene BUT I’ve found a bug that occurs when I go from “menu” to “title” and then back to “menu” and start a new game with the selected level. This bug seems to cause every event to be fired TWICE. So the functions triggered by touch events happen TWICE, even enterFrame seems to fire twice. It will even happen three times if I go menu-title-menu-title-menu-game. It’s as though removeEventListener doesn’t do its job??

Can anyone help me? Is this a known bug?

Cheers

EDIT: Oh and this can happen even before I load the game scene for the first time, so I haven’t got a clue what is going on. [import]uid: 44147 topic_id: 17828 reply_id: 95732[/import]

I’ve tested 773 with both OSX 10.6 and 10.7. Transition effects fromRight, fromLeft, fromTop, fromBottom are broken. What I think is that next scene is below current scen, so you cannot see the transition itself. I noticed it by text flickering. Something is moving but as I said in a layer under. [import]uid: 40334 topic_id: 17828 reply_id: 95805[/import]

I’m experiencing the same effect using fade or crossFade. I see movement of the layers between scene fades. [import]uid: 42417 topic_id: 17828 reply_id: 95807[/import]

@ joshmcrae I had a similar issue. I must admit I don’t remember exactly what I did wrong. It had to do with that I created objects in a listener function and had hard time to cleaning the stuff. It was a database query. So when I opened scene 1st time, everything was all right, but second time I received duble amount of rows, 3rd 4 times and so on. My solution was to move the query to enterScene instead. I hope that points you in right direction. [import]uid: 40334 topic_id: 17828 reply_id: 95809[/import]

@ colorsilvia Hard to say from the code you’ve posted. But have you tried to add the button do sidplaygroup? Like this display.getCurrentStage():insert(myBtn) in main.lua after you creating it. [import]uid: 40334 topic_id: 17828 reply_id: 95813[/import]

@Yogamatta Thanks man, I’ll give that a shot.

EDIT: It’s completely fine now. Thank you so much! I just find it weird that the eventListener has to be put there. [import]uid: 44147 topic_id: 17828 reply_id: 95848[/import]

@scowden

Popups work fine with Storyboard API. You have to remember to call

[lua]storyboard.removeScene( storyboard.getPrevious( ) )[/lua]

in the scene that loaded the popup.

BoarK. [import]uid: 23864 topic_id: 17828 reply_id: 97246[/import]

I am just starting out with Corona and with the StoryBoard module. I have a scene that has added some buttons created by ui.lua module.

in the exitScene function do I have to remove the eventListeners for these buttons? If so, what would the syntax be? [import]uid: 13814 topic_id: 17828 reply_id: 97367[/import]

Guys,

Should app have problems with performance with 12 scenes and each contains event listeners for all scene events like below ?

scene:addEventListener( “createScene”, scene )
scene:addEventListener( “enterScene”, scene )
scene:addEventListener( “exitScene”, scene )
scene:addEventListener( “destroyScene”, scene )
scene:addEventListener( “exitEnded”, scene )
scene:addEventListener( “enterBegan”, scene )

Regards,
Tom [import]uid: 111283 topic_id: 17828 reply_id: 97583[/import]

How do we implement page curl effect with storyBoard? [import]uid: 32063 topic_id: 17828 reply_id: 97749[/import]

@Luciane

There is a sample code in samples, works pretty well.
[import]uid: 111283 topic_id: 17828 reply_id: 97937[/import]

@Bladko,
which one is it? In a daily build?
Luciane [import]uid: 32063 topic_id: 17828 reply_id: 98007[/import]