Licenza da 75 € Accedi
DE EN FR ES IT CZ

How to play animation on next movement

Questa discussione ha qualche anno. Alcuni dettagli potrebbero riferirsi a una versione precedente di Visionaire Studio. Tutorial aggiornati

  1. · 12 years ago
    Hi,
    My character walks to a bench, they sit down, the outfit is then changed to the 'Sitting Outfit'.
    How can i now make sure to play the standing up animation before the character starts to walk away?

    Basically, I need to play an animation before the next Interface Walk Action is called.
  2. Stai lavorando a un gioco?

    La versione gratuita consente fino a 25 scene per progetto. Per più scene e per vendere il tuo gioco ti serve una licenza.

    Vedi le licenze Provalo gratis
  3. · 12 years ago
    Use an NPC version for the bench part & hide your playable character or send it to another scene. This way the character won't walk. Inside the left click mouse properties or via Lua script you could check if character is sitting / npc or something with an if query then if it is you could determine what it should do, such as: store the destination, play the standing up animation, then swap the npc character for the playable character.
  4. · 12 years ago
    I cannot get this to work.
    I'm using a coin interface and therefore do not have a left click for the Walk command, i have the Walk command set as my standard command.
  5. · 12 years ago
    I meant in the mouse properties tab under the game tab.

    Long story short. Swap out the main character for an NPC character when sitting down. Then swap back to the playable character when they can walk again. There are multiple methods you could use to do this, so I'll leave that up to you to work out how you go about it.
  6. · 12 years ago
    I managed to do this in the Games/Mouse Properties/Left Click event:
    1) Store Cursor Position (curPos = getCursorPos)
    2) Save object
    3) If condition 'SittingDown' Play StandUpAnimation (and wait)
    4) Set command 'Walk'
    5) If object below cursor exists 'Execute command on saved object'
    else Execute char.CharacterDestination = curPos
  7. · 12 years ago
    Nice one! Glad you got it sorted out. wink

Questa discussione è chiusa perché nessuno risponde da più di un anno. Puoi fare la tua domanda in una nuova discussione.

Nuova discussione

Eliminare davvero questo messaggio?