aulavirtualtest's Recent Forum Activity

  • I see, thanks a lot for your answer.

    So as I was afraid before, there is limitation in some cases.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • If I create an event that contains a condition refering to a instance of an object, and only one object in the layout meets the condition, the event will understand that I refer to THAT instance when I create actions, but what happens if you create a new instance of the same object in that event. Which instance will the action refer to from that point?

    And more important, what happens if I want to compare to already existing instances of the same object in a layout, is there a way to do it?

    TIA.

  • Thanks a lot, I finally made it works!

    I really apreciate you help.

  • export async function createVideo(iframeId) {

    Globals.ytPlayer[iframeId]["player"] = await YouTube.CreatePlayer(iframeId, {

    "onStateChange": e => { Globals.ytPlayer[iframeId]["state"] = e.data; },

    "onReady": e => {}

    });

    return true;

    };

    How do I use the state to change a global variable at an event sheet?

    I want something like this, but I cant find the way to mix both examples:

    const stateTextInst = runtime.objects.StateText.getFirstInstance();

    const ytPlayer = await YouTube.CreatePlayer("youtubeIframe", {

    "onStateChange": e =>

    {

    // When the player state changes, show it in the StateText object.

    stateTextInst.text = "" + e.data;

    }

    });

    Thanks for the links.

  • Basically what I ask on the subject. Is it even possible? I had try many conmbinations but nothing works.

    Also, is it posible to change the on click a button from the example API to a OnTouchedObject from a Touch?

    I´m kinda new on JS so I feel totaly lost on this.

    Thanks in adavance.

aulavirtualtest's avatar

aulavirtualtest

Member since 1 Mar, 2021

Twitter
aulavirtualtest has 1 followers

Trophy Case

  • 3-Year Club
  • RTFM Read the fabulous manual
  • Email Verified

Progress

5/44
How to earn trophies