_MD_'s Recent Forum Activity

  • No, quitting as in stopping the game from running (monsters from spawning, player/world from existence, etc). Any ideas?

    p.s. but this a separate topic on it's own, I would really like to get some help on the AJAX question.

    Thanks again.

  • I also would like to know an easy and efficient way how to do this...

  • The idea is very simple, I'm new to Contruct 2 engine and hence would really appreciate some help. The game that I'm making suppose to get a custom form via AJAX. I have written the PHP page that serves this form (for now it just echoes a simple text), and then created an AJAX request in the game. I have assigned a textbox to receive the PHP output, and it does so flawlessly. My question is this:

    • How can I make a custom HTML form retrieved from AJAX fill up the screen and not just a textbox? (I can make an HTML page that is 640x480, add custom CSS for the rounded-corner background and some text, input fields and a submit button)
    • If I'll be able to show my custom formatted HTML page, I can make it come with it's own AJAX handler (jQuery) that would handle a submit form action. So my second question is upon pressing this submit button, how do I get back to the game? Is there any way to bind an external call to continue or quit the game?

    P.S. This might also sound like a silly question, but I wasn't able to figure out how to quit the game upon certain events (when a player wins or looses for example). The only way I could think of was to destroy player. Is there an easier way?

    Thanks again, I really enjoy coming to these forums, so much talent! =)

  • Thanks a lot guys! Seems like a lengthy approach, I'd rather stick with creating all the levels inside Construct 2. Afterall it's a job security, right?! :)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I am creating a game where number of levels can be unlimited. In order to do so, I decided to have a solid introduction and an ending. The levels in between would be loaded with javascript. If a new level is developed, all that's needed is to load a new .js file like so

    <script type="text/javascript" src="game_start.js"></script>

    <script type="text/javascript" src="level_1.js"></script>

    <script type="text/javascript" src="level_2.js"></script>

    <script type="text/javascript" src="level_3.js"></script>

    ...

    <script type="text/javascript" src="game_end.js"></script>

    So how can I do that?

_MD_'s avatar

_MD_

Member since 30 Jan, 2012

None one is following _MD_ yet!

Trophy Case

  • 12-Year Club
  • Email Verified

Progress

13/44
How to earn trophies