droptank21's Forum Posts

  • My first attempt didn't do anything.

    .http://www.mypwn.com/ajaxexample/

    I FTP'd your example as well and it GET's the info in the php file...it just doesn't display in the text object.

    .http://www.mypwn.com/ajaxtutorial/

    I'll keep tinkering and hopefully figure out what I'm doing wrong.

  • In your tutorial you have the AJAX event as:

    AJAX -> on "" completed... action = txtReturnData -> set text to AJAX.LastData

    But in your capx file it shows instead:

    AJAX -> On AJAX.LastData completed...action = txtReturnData -> set text to AJAX.LastData

  • Ghengis...you totally rock! Thank you.   <img src="smileys/smiley32.gif" border="0" align="middle" />

  • Thank you all. Guess I have to tinker with some javascript. <img src="smileys/smiley1.gif" border="0" align="middle" />

  • A menu to use in the game. For example: right-click on an object and the right-click menu (instead of giving options like "Back", "Save Background As", "Create Shortcut", "View Source" etc...) gives options for that object like "Examine Object", "Use Object", "Drop Object" etc. And, of course, have those options if left-clicked perform that particular event for that object.

  • I have browsed through a lot of the posts on here but haven't yet found anything on this. So here it goes...

    Is there a way (plugin/built-in coding) for a designer to change the right-click menu content and what actions the right-click menu options do?

    I'm not exactly asking for someone to show me how just yet, I'd just like to know if Construct2 has the capability or if I need to figure out how to to incorporate it.

  • Kyatric is da man! Nuff said.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Yep. That's all the part I need. I already have the db and necessary php files set up (I think <img src="smileys/smiley5.gif" border="0" align="middle" />). I just need some insight on using AJAX to Post and Get info to/from my application.

    From recent tinkering..."Global Objects". (if feasible)

  • <img src="smileys/smiley1.gif" border="0" align="middle" />

    It worked. Thank you a bunch Kyatric.   <img src="smileys/smiley32.gif" border="0" align="middle" />

    Now to test out creating items, storing them in an inventory, using them to create events by dragging and dropping over other objects and hopefully create an animation effect or two.

    Thanks again.

  • I added a new text object, edited its instance variables to show the global variable and still nada.

    So I even created a new global variable(Message2), updated instance variables and updated all of the event info to match the new global variable specific to the second layout. Still nothing.

    CAPX: Shadowgate2 CAPX

    <img src="http://www.mypwn.com/example1.jpg" border="0">

    <img src="http://www.mypwn.com/example2.jpg" border="0">

  • I'm having issues transitioning from layout 1 to layout 2. The objects transition as they should but the events in the second layout don't function at all. Could anyone tell me what I may be doing wrong?

    Here is the CAPX: Shadowgate CAPX file

  • <img src="smileys/smiley1.gif" border="0" align="middle" /> Sweet

  • Tom,

    You had mentioned earlier that:

    Yes! Jquery is included with exported games, and it has some excellent AJAX wrappers. These will be available in C2 soon hopefully as they open the door on what can be achieved massively.

    AJAX also will be able to manage some multiplayer online games as well (turn based and puzzle). HTML5 websockets will be able to handle real time multiplayer games.

    When the AJAX plugins are completed I'll write some tutorials on how these can be applied easily. I'll also write some sample server side code in multiple languages to make it easy for people to install.

    Do you still plan to write up a quick tutorial on how all of this is done? I plan on developing (don't laugh) an HTML5 rendition of Shadowgate that doesn't kill the user every three seconds. <img src="smileys/smiley2.gif" border="0" align="middle" /> I will need to have, of course, a login page and a way to manage which rooms, events, items etc each individual user has.

    While the method of maintaining a database on the user's computer would be simple I'm guessing it wouldn't take much for them to hack the XML or text code in the file. Hence the need for sql database connectivity. I am decent with sql and okay with php, but have almost no knowledge of AJAX.