gumshoe2029's Recent Forum Activity

  • You can also use AJAX > Request URL :: Then put in the actual URL to the XML document. Like: http://192.168.0.1/subfolder1/subfolder ... erview.xml

    Then use AJAX.LastData to read the response.

  • The Toggle-switch behaviour might be useful too.

    Is that something that already exists? Or are you suggesting? I can't find this in the Behaviors?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • We have managed to use CanvasToLayerX/Y for our UI layer to resize all of our UI to fit the user's screen. A randomly funny side effect of this block is that it effectively disables the browser's ctrl-mouse-wheel zoom functions, since the UI automatically resizes itself to what we specified.

    This method works well beyond my expectations though, which is nice.

    Another nice side effect is that you can rearrange your UI based on the user screen's aspect ratio to have a different display for smart phones etc.

    [attachment=0:1awaa0ls][/attachment:1awaa0ls]

  • Ok, cool. I will keep those two observations in mind when doing toggle switches in the future. I am definitely going to implement these, because I don't need any more global variables running amok in my MMO.

    I have had other click actions behave in peculiar manners since then also -- not just toggle buttons -- so there is definitely some clicky weirdness going on that I do not have a good handle on yet.

  • Let me see if I can upload the image to the Scirra site rather than a random image host site.

    Here is the not working copy:

    [attachment=1:3rqc9cxd][/attachment:3rqc9cxd]

    I found a toggle button tutorial that worked it a different way.

    This version seems to work. It is just an annoying side effect of JavaScript being completely asynchronous. It seems that both events (in the previous example) triggered simultaneously.

    [attachment=0:3rqc9cxd][/attachment:3rqc9cxd]

  • I am having no sporadic success getting click events to activate.

    For instance:

    This click event does not want to work, when I run it in Chrome. It will not do any of the actions listed in either event.

    I have tried with my toggle being global or local. I've tried conditioning it on the opacity of my "blotter" object.

    When I disable the ".. click on toggleText" event then everything works as intended, so why don't my click events work?

    I am sure I am doing something simple and stupid wrong... I just can't find it yet.

  • Actually, I think I see why now. The problem isn't the layout that it is going to. The problem is the 40,000 objects in the layout that it starts on. The client has to destroy and remake those 40,000 objects each time it goes to and from the layout.

    I think I might try just hiding those objects perhaps, rather than destroying and re-creating them.

  • I have run into a problem with the game that we are building hanging for around 3-6 seconds between a specific layout pair.

    When the button to swap layouts is clicked, the game freezes for a few seconds, then loads the new layout.

    Has anyone else run into something like this? If so, did you find what caused it for you?

    The generic list of actions that occur on layout load are:

    1) All of the static objects are loaded (maybe 5-10 objects, 1 very large (2000x1000px) object)

    2) AJAX call with ~100 character response

    3) response is parsed into a rex_rainbow Hash table

    4) Dynamic objects are loaded, based on AJAX data (3-11 objects)

  • We are doing an MMO using Construct as the front-end client. The back-end database is accessed using a Java JDBC driver via Java servlets. You could just as easily use PHP or Perl to do the same thing though. I would look into Java, PHP, or Perl database connections. These programs can then interface with your Construct via HTTP.

  • How does one control the scope of procedurally generated sprites? Do they adopt the properties of the pre-existing mandatory sprite?

  • "Premature optimisation is root of evil" +1 for this.

    I've left more decapitated Java servlets in my wake doing this than I should care to admit, haha.

    You can load images dynamically from blank sprite objects using the "Load image from URL" action. You can dynamically load Text objects using AJAX and JSON.

    You can load assets with AJAX too using the "Request project file" or "Request URL" then request an image URL. For instance, on our website (http://50.112.151.9/home) we load the test text and images on the "About" page using JSON AJAX calls. That way it only loads each pages content when that page is visited. But you still need blank sprite containers for all of those objects.

    Like this: http://postimg.org/image/kfuv0y92z/

    The JSON file that it loads from looks like this:

    {

    "p1":["This is a paragraph of text for JSON delivery. 1","500","200","2200"],

    "p2":["This is a paragraph of text for JSON delivery. 2","500","300","2200"],

    "p3":["This is a paragraph of text for JSON delivery. 3","500","400","2200"],

    "p4":["This is a paragraph of text for JSON delivery. 4","500","500","2200"],

    "p5":["This is a paragraph of text for JSON delivery. 5","500","600","2200"],

    "p6":["This is a paragraph of text for JSON delivery. 6","500","700","2200"],

    "p7":["This is a paragraph of text for JSON delivery. 7","500","800","2200"],

    "img1":["wizard2.gif", "800", "900", "0"],

    "img2":["wizard_male.png", "800", "400", "0"],

    "img3":["", "0", "0", "0"]

    }

  • I bet you are right on R0J0, that would make sense, if you rotate the frame of reference.

    I guess just the specific equations that are doing the translations. From those descriptions they seem like they would be identical, but I do not believe that they are. I am really a Java programmer who got whisked into the JavaScript realm somewhat unwillingly, so I am extremely grateful for Construct. I am just used to documentation that allows me to follow the number trail when it comes to mathematical manipulations. I could take the time to work out an approximation for what is in the black box, but I think that my time is better spent pressing our game development further.

    Either way, it works for us for now, so I can't complain too much.

gumshoe2029's avatar

gumshoe2029

Member since 4 Mar, 2014

None one is following gumshoe2029 yet!

Trophy Case

  • 10-Year Club
  • Email Verified

Progress

11/44
How to earn trophies