Forums

OverviewV-Play 1 SupportSprite::running property bindings › Reply To: Sprite::running property bindings

OverviewV-Play 1 SupportSprite::running property bindings › Reply To: Sprite::running property bindings
#6995

Christian
V-Play Team

Hi Guybrush,

try modifying the property running from SpriteSequenceFromFile instead of Sprite itself. The property of the Sprite element should not be modified, as documented in the sources:

internal - must not be modified externally by engine users, gets set with jumpTo and goalSprite - it gets modified by changing the running property of SpriteSequence!
    Defaults to false, so animation is not started until this gets set to true. This should not be used by engine users directly, because a Sprite always must be nested into a SpriteSequence and running is only allowed to be set there.

Using the something like the following code, your problem can be solved:

SpriteSequenceFromFile {
      ...

      Sprite {
        .....

      }
      running: movement.running
    }

 

Cheers,

Chrisu

 

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