gumshoe2029's Forum Posts

  • > vendara - That's weird, I tried to remake your event and did not find anything wrong with the text object setting it's text to variables or variables have any problem. It must be the event you used to subtract the Health Variable or to put it simply, If there is a bug or an incorrect event then the problem must be when the enemy do some damage with the player.

    >

    > Try to use "Round" native expression to remove the decimal places when you cast damage. Are you using the "float" expression by any chance?

    >

    There is nothing wrong with the events.

    I also tried to recreate it in a other Project, and it didn't happened.

    It even happens when I'm using floor or round, II already tried that.

    It happened when you used round() too? That doesn't seem possible.

  • Well, the loader layout (Galaxy View) loads, but the user cannot move to another layout until all of the images from all other layouts load. And the loader layout will periodically fail to load altogether.

    Mostly, what I am looking for is if Construct2 has an AJAX response API that gives me feedback on whether the images are still being loaded, or whether there has been an internet interruption on the user side in order to give appropriate feedback to the user.

    For example, if you open our website, the "loader layout" is the main page, and we have several large images on other layouts (namely race creation), you cannot click on any of the other buttons until ALL of the other layouts load all of the images. It would be nice to have a little text that says: "Loading images..." or something until all of those other images are loaded, or have an error if the image loading stops.

  • It should bring up a file browser UI and ask you where to save it.

  • That is usually how it works. My quote for this stuff is always: "Fiddle with it until it works or you break it."

  • Yea, we already do that. But the problem is that Construct stalls the ability to go to other layouts until all of the images are loaded, which takes a while for our client, and occasionally dies mid-load.

  • So, our live client is around 120Mb of images and data being loaded between the various layouts.

    In the HTML5 published version, we have run into issues with C2 loading the page completely the first time a user visits the game client page. Is there a property or something that will give me feedback on the status of the images being downloaded, so that I can display a message to the user to wait (or tell if it has failed client-side)?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You don't. That would be a violation of security in JavaScript. How would you like it if any website that you visited could save files on your computer?

  • What you might try doing is putting a thin sprite on each side of the screen just outside of the screen area, then just assign "Solid" to all of the boundaries, and 8-direction to all of the UI pieces.

  • We are also building an MMORTS right now. See the siggy.

  • Infinite recursion is a terrible thing to behold.

  • Why not use a for loop?

    Instead of a "while" loop, you can use a for loop from 0 to Array.Width-1.

  • If I have to guess, you probably have competing global events (not subsidiary to any other events) that are competing. They will trigger at the same time when they are both true and will cause... unexpected things to happen. Make sure all of your conditions are predicated on something specific so that you prevent things from executing wildly.

  • Can you use Pode's iFrame?

  • Why not just set it to: round(random(100))?

  • I would look at the "Lighting Demo" in Construct. It is probably not exactly what you need, but I think this will set you down the correct path.