Radkampfwagen's Forum Posts

  • or if you want it to move left/right

    use onstart of layout

    set sprite.X to sprite.X [(+ for right)(- for left)] (how much you want)

    and if you want it to move up/down

    use onstart of layout

    set sprite.Y to sprite.Y [(+ for up)(- for dowm)] (how much you want)

    ----

    do you already know this?

  • no this could be it

    did u use instance variables or global variables for the points?

    reset global vars doesnt reset instance vars

  • also do u use global vars for the score or is it instance vars?

  • wait does this thing work correctly for when:

    player collides with enemy

    and

    player outside layout

    if it isnt both that could because the order of actions in the event sheet arnt the same

    for the outside the layout one -

    you subtracted from hp then reset global vars

    that wont affect the hp at all

    but for the colliding with enemies -

    you reset global vars then subtracted from hp

    that will affect the hp

    does this help or did u say only the score doesnt work?

  • wow thanks so much dude

    never knew of using or function before

    thx :D

  • what is the default of those global variables?

    is it 0?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • i dont know why that happens but look here if this helps:

    ive never used the function -> System: Reset global variables to default (include static: True)i always reset each variable with a separate action and that always works fine with me - why not try that and tell me if it works?

  • one question (sorry this doesnt answer your question) how do you get the function OR in you event sheet?

  • or perhaps enable default controls?

  • did u enable platform behaviour?

  • every x seconds → set sprite.X to sprite.X +(whatever number you want)

  • how can i play it?

  • Undefined is not an object (evaluating 'navigator.mediaDevices.getUserMedia')

    Here is the event code (Note I changed the agent id as I don't want folks reading this to burn through my credits:

    if (!document.getElementById("budo-voice")) {

    const convoDiv = document.createElement("elevenlabs-convai");

    convoDiv.setAttribute("agent-id", "jusandexample");

    convoDiv.id = "budo-voice";

    // ✨ Centering the widget in the screen

    convoDiv.style.position = "fixed";

    convoDiv.style.top = "50%";

    convoDiv.style.left = "50%";

    convoDiv.style.transform = "translate(-50%, -50%)";

    convoDiv.style.zIndex = "9999";

    convoDiv.style.width = "300px"; // optional

    convoDiv.style.height = "auto"; // optional

    document.body.appendChild(convoDiv);

    const script = document.createElement("script");

    script.src = "https://elevenlabs.io/convai-widget/index.js";

    script.async = true;

    script.type = "text/javascript";

    document.body.appendChild(script);

    }

    this is the work of a pro

  • u using event sheets or JS or TS?

    im too noob i use es

  • wow u must be a pro dev