degee147's Forum Posts

  • 4 posts
  • First I would like to say a very big thank you for this great plugin. It's a real time saver. However, I have some questions. Maybe I'm not getting things exactly right..

    I'm doing a game where an alert(a background image and two buttons) pops down from top of the screen (invisible area) to the main screen, when a player fails. Basically the alert pops down and says "You have failed, would you like to continue?", and then a "YES" and "NO" button to either continue or exit to the main menu.

    So, I'm moving these 3 image objects(the background, "Yes" button and "No" button) using the MoveTo plugin. Coming down is fine, however, when the user chooses YES, the alert is supposed to go back up into the invisible area so the game can continue but it isn't. It's almost like it tries to, but hangs immediately. Moves about 1 pixel then returns back. You keep pressing YES the same keeps happening over and over, and at the end of the day, the alert is still at the same place.

    How do fix this please?

  • Thank you very much Lordshiva1948 for your response. The tutorial is not exactly what I want though. I really do want to be able to call a function in a JavaScript file which I will include in my project.

    Reason being that I should be able to make my REST API calls from the function in the Javascript file and then be able to access a JSON response back in C2.

    Or if there's a better way to do this, I'll really appreciate it a lot. Thanks once again.

  • Good day all,

    A quick question please, how do I ...

    1. Include a JavaScript file into my project

    2. Access a JSON object returned from function in the script

    I'm trying to include a JS file in my project, as well as make a REST API call and retrieve a JSON response back and also display data from the JSON on Text views in C2 and also save some returned data into a variables with which I can manipulate and work with.

    Any help/guide would be greatly appreciated

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • What's the solution please?

    How do I access JSON data from array, and display in a Text object for instance

  • 4 posts