Heithnim's Forum Posts

  • 2 posts
  • I don't think there's a direct stopAll() function. You'll have to loop over all the tweens

    > 	for(const tween of runtime.objects.Sprite.getFirstInstance().behaviors.Tween.allTweens()) {
    tween.stop();
    }
    

    Typed that without testing but I think it should do. For reference

    https://www.construct.net/en/make-games/manuals/construct-3/scripting/scripting-reference/behavior-interfaces/tween

    https://www.construct.net/en/make-games/manuals/construct-3/scripting/scripting-reference/interfaces/itweenstate

    That Works! Big Thankyus

  • Hi, How can i use the "STOP ALL TWEENS" of an instance using the API?.

    Failed attempts:

    runtime.objects.Sprite.getFirstInstance().behaviors.Tween.stopAll();

    Failed attepts when asked to Gemini:

    runtime.objects.Sprite.getFirstInstance().getInstanceBehavior("Tween").stopAll();

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • You do not have permission to view this post

  • 2 posts