Forums

OverviewV-Play 1 SupportIs there a way to change the width of a SingleSpriteFromFile ? › Reply To: Is there a way to change the width of a SingleSpriteFromFile ?

OverviewV-Play 1 SupportIs there a way to change the width of a SingleSpriteFromFile ? › Reply To: Is there a way to change the width of a SingleSpriteFromFile ?
#7806

Stan

No problems..

 

SingleSpriteFromFile{
        id:area

        // Properties below give start and end x coords of the usable bit of the action bar graphic
        property real barStartX: area.x + 26.0
        property real barEndX: area.x + area.width - 28.0


        source:"ActionBar.png"
        filename:"../img/imgs-0-sd.json"
        x: -200
        y: 110
        height:  

        MouseArea{
            anchors.fill: parent
            onPressed:{
                markerAnim.stop()
                    if (marker.x  > redArea.x && marker.x < redArea.x + redArea.width){
                      actionBar.result("success");
                    } else {
                      actionBar.result("failure");
                    }
                timer.running = true

            }



        }
    }

 

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support