jimutt's Recent Forum Activity

  • I managed to get it right after a much needed night of sleep ;)

    The size for the array is 1,2,5.

    Really don't know how I couldn't get that right last night. :P

  • I'm trying out the JSON and AJAX functionality in Construct 2 and I just have a quick question. I'm just too tired for getting this right.

    When you load JSON data into Arrays you have to use the specific Construct 2 format for the JSON data. Which means you have to put this information before the actual data:

    "c2array":true,
         "size":[
              xsize,
              ysize,
              zsize
         ],
    

    What I'm wondering is what array sizes (see the code window above) I should enter for this array which I generated from a my MySQL table:

    [["1","4","5","Brasiv","12300"],["2","3","7","jimutt","6783"]]
    

    Thanks in advance,

    Jimmy

  • You could draw curved solids an then edit the collision polygon to your liking. (http://www.mediafire.com/view/bkyqt5bo9655xh3/colpoly.jpg)

    Keep in mind though that more points in the polygon means more resources are needed for the game to check for collisions.

  • You can do this by editing the .htaccess file, if your hosting your game on a web server where you are able to use this. If you're hosting the game on dropbox for example I can't help you.

    This article covers a couple of way of limiting the access to your file: k-state.edu/tools/restrict-access

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks!

    is it displaying as a blank page for everyone? Just though that it would be nice to get to know the changes. :)

  • Thanks for the tips guys! :) I could probably make use of it.

  • Hi there,

    I some advice for how I best accomplish the following task:

    I need to check for collisions between instances of the same object. This is so that autonomous AI will be able to exchange information when they get "in touch" with each other.

    So what I need to do is when instance A collides with instance B one of instance B instance variables should be set to the same value as the instance Variable instance has.

    What is the most simple way to do this?

    Thank you in advance,

    Jimmy

  • Just want to bumb this thread and ask about the Node-Webkit at any time will support this? Because as I'm working on a simulation game it would be very useful to let it continue to run when I've minimized it on my desktop.

  • Thank you Nimtrix!

    As usual you delivered a perfect solution! :)

    That was exactly what I was looking for!

  • But I'll have like 100 instances of the Bot class. And then there will be a quite big change to add 100 sprites more as I'm sure you understand.

    That will effect the performance more than a couple of events.

    Though I'm not sure if it's possible to do this with just events. So I might have to go with the collision sprite solution anyway.

  • The problem is that you can't do this only inside Construct 2. You need to do a lot of scripting in Javascript and you also need to set up your own web server which will then communicate with the game itself. If you really have no basic knowledge of web programming I'm afraid you'll have to start with learning some basic HTML5 and Javascript.

    Though I have not read all topics about this so there might be someone who has made a plugin which makes the progress easier. But this is a very very big task to do.

  • Of course it is possible to go with an invisible "collision sprite" which is attached to the Bot object. But in my final application I will have a lot of objects on the scene at the same time and then it will be crucial for the performance to not having to use 2 sprites for each Bot object. As that will slow down performance.

jimutt's avatar

jimutt

Member since 26 Jun, 2012

None one is following jimutt yet!

Trophy Case

  • 12-Year Club
  • Email Verified

Progress

13/44
How to earn trophies