Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Transitions from one state to another

edited January 2013 in General Posts: 266

Right now, my app (Flood+) doesn't have any transitions when going from one state from another. I'm using Finite State Machines used in @Reefwing's tutorials. It would be really great to have class that could handle things like that. Does any one know how I would get started by doing such a thing? I just want a simple transition like fading in. It would also be cool to have more advanced ones like the text and elements sliding in.

Comments

  • Jmv38Jmv38 Mod
    Posts: 3,295

    Wait for 1.5. You'll be surprised...

  • Posts: 266

    .@Jmv38 why? Is there anything specific just for transitions?

  • Jmv38Jmv38 Mod
    Posts: 3,295

    There will be a ''tween'' library allowing some fancy effects (webkit style transition if you know javascript), so wait for it before developping something.

  • edited January 2013 Posts: 666

    You can also find and use the existing tween library that's on the forums as a workaround...you still need to control when things are 'fully faded in', but it is possible.

    If we knew when 1.5 was released, it could help you decide which course of action to take.

    In my app I've gotten some effects like scoring and explosions to occur inline, and I start the app with a fade effect without using the tween library; I has the screen used ElapsedTime and a startTime user defined variable to work around it quickly

  • Posts: 371

    Hey everyone :). When I was experimenting a while ago I built a delicious menu screen, with transitions for every state. One slide pushed another off the screen. It was ridiculously simple, and worked like a charm. I have lost the code though...

  • Posts: 563

    You can do a fade in effect fairly easily at the moment (http://codeatuts.blogspot.com.au/2012/06/interlude-3-fader-class.html).

    You could also probably do something fancy with shaders (e.g ripple transition) when v1.5 comes out. It is a BIG update but lots of code changes does introduce lots of bugs so it is taking a little while to finalise.

Sign In or Register to comment.