QABS and QSprite question

● ARCHIVED · READ-ONLY
Started by Shiko 3 posts View original ↗
  1. Hey everybody. I wanted to ask if anyone knows how to call a QSprite pose with a script call.
    The only things I'm able to do when an enemy dies is through javascript and I wanted the enemy to make a pose when it dies.

    I tried something like this: "$gamePlayer.playPose(move, true, true, false, false);" just so I can test it, but it doesn't work.

    If anyone knows a solution for what I'm talking please let me know.

    Edit: Well I'm dumb. The argument move needs to be "move" because it's a String. It's working fine now.
  2. My best guess would be something like this:
    this._originalPattern = X;
    Where X is the index on the sprite sheet that you want it to be set to.
  3. Could you elaborate please? Because that only made me more confused xD
    I dont think QSprite uses indexes on its calls.