Tekniko's Forum Posts

  • Hey there, I am trying to setup my maps so that they will select certain values along X and spawn enemy monsters accordingly. I just cant figure out how to select a value 10 through 15 along X and then spawn and load their instance variables based on the values in Y for each X. If that makes sense.

    Basically, I just wanna be able to control which monsters spawn from my array. Can anyone point me in the right direction?

    Thank You,

    Stephen

  • roracle did you ever figure out how to do this?

  • any playable stuff yet ?

    Unfortunately no. In the next few weeks I could put something out.

  • Wow, I was way off haha. Thank you

    One last question. Why do you clear the array on start of layout?

  • Set the Initial State of the Particle emitter to Disabled. Then OnCollision with that ballThing, Move the Particle emitter to Player.X/Y and set Particle emitter to Enabled.

  • Ahh the old 3:2 aspect ratios! Stick with Android my friend!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Need to see a capx or at least the events you are using.

  • Can we see your events or post a capx?

  • Hey there,

    I am trying to load my JSON file into my array. I used the exact same one that was exported and even a modified one. Neither work at all. Here's a screenshot to show you how I have it coded. Any insight? Something I over looked?

    Thank You

  • Thank you fir the advice. Ill try to figure out the export thing when I get home tonight.

    Edit

    Well, it took me forever but I was finally able to download the JSON file from my game. Worked great! I am gonna start loading the array with data tonight.

  • I am still very confused on how to format a JSON file for a 3D array. Could someone give me small code example? I'd be in your debt.

    Let's use number for X. WeaponName for Y. WeaponStats for Z.

    Thank you,

    Stephen

    Edit:

    I probably wouldn't even need a 3D array. I could just load everything in a 2D array.

  • you can create a .txt file and than rename it to be .json

    content should be something like this:

    {"armors":1,"weapons ":2}

    And how do I control what is on each axis?

  • As the subject states, how?

    I am trying to create a JSON file so I can fill it all my armors/weapons and stats. Then using AJAX, push the info into an Array. I believe I am on the right path for an item database but I just can't figure out how to make a JSON file. Or even how I would format 3D values (XYZ).

    Any advice? Thank You.

  • Gotcha. Thanks.

    What I do is set up a 32x32 grid in Photoshop on a 320x320 canvas. Then zoom in 400% and draw away.

  • Set it to looping and dont stop it. If you are using a OnStartOfLayout to play music then just add a subevent to see if the music is already playing.