Yozzik's Recent Forum Activity

  • This plugin loads JSON file while the game is loading, right? How to reload a JSON during the game?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Tiles are made in this way to store information about the world (resource nodes and other stuff), so tiled background is not the decision (at least if i got you right).

    And yes, that`s really a lot of tiles. But i can generate the world once and than just load it from JSON by parts (for example only 2 "screens" around the player`s line of sight).

    MadFactory, you mean soft named "Tiled"? I can check it out but can i generate a random world in it?

  • And the problem is solved! :)

    <img src="http://taburetka-games.com/3.png" border="0" />

    <img src="http://taburetka-games.com/4.png" border="0" />

    P.S. Any optimization ideas?

  • Hi.

    My goal is to create an isometric map based on the array. I`ve got no problems with basic non-isometric tiled maps, but isometric one is harder.

    The result of non-isometric code

    <img src="http://taburetka-games.com/1.png" border="0" />

    for isometric tiles is

    <img src="http://taburetka-games.com/2.png" border="0" />

    Quite psychedelic and interesting, but not what i need now. :)

    If i was working on tiled map without arrays, the additional variable for spawning even/uneven rows could be the best decision. In my situation it is impossible or i have a lack of knowledge.

    That`s where i need some help: how to spawn the proper isometric tiled map with array?

  • Ok, i will keep going this way. Added 2 array "levels" deep today and it looks and acts pretty good. Thanks for you help.

  • Yes, that is quite efficient, thanks. So, as far as i see, there`s no way to put an array into array, yes?

  • Hi.

    I`m creating a tile-based RTS on arrays (kind of Dwarf Fortress on C2 :) ). I`m a newbie at arrays, but no matter because i`m going to raise my skill.

    I`ve got a big array which is the "tiles" with sprites (graphic tiles) on it. Each tile (sprite) is a container with another type of an array - a "pile" of anything on that tile (grass, raindrops, elves, dorfs). Elves and dorfs must be arrays too, so i can store them like "body, clothes, armor, weapon and shield, enemy`s blood on the face"

    So, the logic is: tiles (array) -> tiles (sprites) -> items on tile (array) -> creatures (arrays).

    And the question is: how to put an array (creature) into the array (items)?

  • Hey, thanks a lot, that`s almost it.

    "Pick all Planet" doesn`t work, but "For each Planet" works perfect. All i needed is "Set All_Units to 0".

    Karma and love to you :)

  • Hi, constructers.

    I`ve got planets with units on it (instance "planet", variable "unit") and now i need to get a total amount of units on all planets (all planets are the same object). Can anyone tell me how to do this or give some advice? (like "go get some sleep" :))

    No-way-variants:

    Every tick - Set global\local variable to planet.units.

    Every tick pick all planets - Set global\local variable to planet.units.

    I`m not a new at C2 but, whoa, now i feel myself like a noob.

  • So, i`ve solved the problem with wrong long- and latitude. If Google Maps plugin sets wrong coordinates, you have to add a new action to editime.js:

    AddAnyTypeParam("X", "Hujur Xcoord", "");

    AddAnyTypeParam("Y", "Hujur Ycoord", "");

    AddAction(2, 0, "Set longitudeXY", "Position", "Set to: {0},{1}", "Set longitudeXY", "setXYgoogleMap");

    (somewhere in string 70-90)

    and then add a new function to runtime.js:

    Acts.prototype.setXYgoogleMap = function (x,y)

       {

         this.googleMap.setCenter(new google.maps.LatLng(x, y));     

         this.marker.setPosition(this.googleMap.getCenter());

       };

    Right after setXgoogleMap and setYgoogleMap functions.

    Use it wisely and improve .js carefully :)

  • Septeven, i`ve got a little problem (which causes a big trouble): added map is set on the latitude and longtitude that set in the "properties" column, but when i need to change coordinates with "Set longtitude" or "Set latitude" - nothing happens or the place it goes seriously misses (example: fields near London instead of London).

  • I`m in and my game is done.

    Here it is

    <img src="http://www.ludumdare.com/compo/wp-content/compo2/233892/20545-shot1.jpg" border="0">

Yozzik's avatar

Yozzik

Member since 6 Dec, 2012

None one is following Yozzik yet!

Connect with Yozzik

Trophy Case

  • 12-Year Club
  • RTFM Read the fabulous manual
  • Email Verified

Progress

14/44
How to earn trophies