Licence od 75 € Přihlásit se
DE EN FR ES IT CZ

[Solved] Reduce particle

Toto téma je několik let staré. Některé údaje se mohou týkat starší verze Visionaire Studia. Aktuální návody

  1. · 9 years ago
    Hi. How can reduce particle into the game slowly and put out? like raining to stop
  2. Pracujete na hře?

    Bezplatná verze umožňuje až 25 scén na projekt. Pro více scén a pro prodej hry potřebujete licenci.

    Zobrazit licence Vyzkoušet zdarma
  3. · 9 years ago
    That's more complex:

    emitter = 10.0
    
    startTween("emitter", 10.0, 0.1, 10000, easeLinearIn)
    
    
    
    function onMainLoop()
    
    graphics.getParticles(game.CurrentScene.Objects.object).numberOfEmitted = {0.0,emitter}
    
    if emitter <= 0.1001 then
    
    unregisterEventHandler("mainLoop", "onMainLoop")
    
    end
    
    end
    
    
    
    registerEventHandler("mainLoop", "onMainLoop") 
    
  4. · 9 years ago
    Thanks Simon.  Unfortunately it doesn't work for me. Or I'm somethings wrong 
  5. · 9 years ago
    You need to change this: game.CurrentScene.Objects.object to your object,

    And the forum puts a <;= in there that should be <=
  6. · 9 years ago
    Simon you can fix the issue with the code blocks by editing your post afterwards & just hitting the save button without changing it. It seems to correctly display the code block as intended, but if you edit again then it will likely insert the semi-colons again, so it's a case of rinse & repeat until it removes them - code blocks have always been a pain on the VS forum in one form or another.
  7. · 9 years ago
    Thanks a lot Simon. It works perfectly

Toto téma je uzavřené, protože tu přes rok nikdo neodpověděl. Svůj dotaz můžete položit v novém tématu.

Nové téma

Opravdu smazat tento příspěvek?