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! =)