Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business

Forums

OverviewFelgo 2 Support (Qt 5) › FlaskOfRum slot machine bounce effect

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #24707

    Anton

    Hello dear community,

    I’m currently still working on the slot machine and implemented most of my desired functions so far.

    My current problem is that I’m trying to achieve a little “bounce” effect for the symbols when the reels stop.

    I want that the symbols, as soon as the reels stop, bounce slightly before they “lock onto position”, so the animation looks a bit more loosely

    and not that cramped.

    I know I can use the  qml easing for it, but I don’t know how to implement it….
    Maybe there is a way to implement this easing in the “onReelStopped()” signal handler ?

     

    Anyway, thank you for your help in advance

     

     

    Kind regards

    #24708

    Bence
    Felgo Team
    #24709

    Anton

    Hi Bence,

    first of all thank you four your answer.

    I know how to start an animation within a signal but I have no idea how to reach the Symbols with the animation.

     

     

    Kind regards,

    Anton

    #24711

    Anton

    Ok, asked differently:

    I see that there already is a little bounce effect when the reels stop.

    I premuse it’s realized with an easing effect, so maybe I can access it’s values (like easing.amplitude)

    somehow….

     

    I would be so grateful if someone could help me out

     

    Thank you in advance

    #24718

    Anton

    Ok fixed it in the Symbol.qml, for those interested:

     

    ....
    
    Behavior on y{
    
    NumberAnimation{
                              easing.type: Easing.Bezier
                              easing.bezierCurve[....]
    }
    
    }

     

Viewing 5 posts - 1 through 5 (of 5 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded