gumshoe2029's Recent Forum Activity

  • You cannot open an Excel file directly in C2. The best way that you can display tabular information is to have it displayed as an HTML file and import the HTML file via Pode's iFrame.

  • You can include PHP scripts:

    http://stackoverflow.com/questions/1469 ... r-php-file

    http://stackoverflow.com/questions/2010 ... -html-file

    You have to include them into the index.html file, although I am not altogether sure how to use them in C2, since I don't use PHP.

  • Good luck, and let me know if you have any other questions.

  • Yea, you have to be super careful with the security of iFrames, and browsers will generally block any iFrame request that does not link back to your own domain.

    For example, I had to proxy our developer's blog through my domain, because Chrome blocks all non-SAME ORIGIN iFrame requests.

  • Thanks but the instance variables on the weapons which I think your talking about wont work because of two reasons, instance variables reset when their object is deleted and the stats will change throughout the game.

    Yea, that is why I am saying keep all of your weapon stats in JSON and stored in memory in a Hash object, then you can use:

    On Created "weapon1" > Set instance var1 = Hash.At("weapon1.stat1"); Set instance var2 = Hash.At("weapon1.stat2"); ...

    It looks like you got it though.

  • Hey, sorry for the late reply. I overloaded my feed and missed a bunch of replies.

    You can either track by UID or by an instance variable that ties the text and sprite objects together. I think the instance variable would be easier for you.

    You want to add an instance variable named "id" (or whatever) to both the Text and Sprite objects that you are using and add a number for each of them that correspond together, e.g. your 'C' Text would have an id=3 and your red box Sprite would have an id=3, while 'B' would be id=2 and your green box Sprite would be id=2, and your 'A' would be id=1 and your blue box Sprite would be id=1.

    Then when the user clicks on the red box, you can check the id of the box that was clicked on versus the id of each text box and delete the corresponding text and then move the remaining sprites/text up.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I am so sorry to hear about your car! You weren't hurt, were you?

    Thankfully, no, but it is not how I wanted to spend my savings while developing this game...

  • Sessions can be hijacked if the session ID is not cryptographically secure. Just FYI.

    https://en.wikipedia.org/wiki/Session_hijacking

  • Yea, I just found the WebSocket plugin, so I will begin tinkering with this now. I had built a Tomcat WebSocket server in Java earlier, but I didn't have a client to connect to it until now.

    The Multiplayer object was never really an option for us because our game state is maintained on our servers then the clients just ask for updates.

  • Yup, this is still the same Construct 2 engine. I'm not sure what Spine is though. It could be something useful. What is it?

    It is a 3D-to-2D emulator that builds spritesheets using 3D models.

  • Oops, sorry for the super late reply. I overloaded my feed thing.

    http://www.gameanalytics.com/docs/rest-api -- you have to sign in to see their API, then you can use the AJAX object to build GET/POST calls to use their API and responses.

  • The Array object is naturally a 3D array, so you can access any point in the C2 Array by calling Array,At(x, y, z).

    To import the data, you simply feed that string into Array.Load (From JSON) method.

    NOTE: If you are feeding the string directly into C2 (i.e. typing it into the Json box yourself), then you need to escape all of the internal quotation marks with double quotation marks, like "".

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