Yozzik's Forum Posts

  • 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).

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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">

  • Perfect!

    I did something like your event listener yesterday (giant text field scrolling with mouse wheel), but your example is much better and, well, wiser :)

    Inventory example is perfect too. I was trying to do it some harder way, i don`t know why and for what.

    So, thanks for you help and advices. I have no more questions.

  • Sorry, we are unable to retrieve this document. - said Google. Please repair links.

  • ahmadnbl, that`s not what i mean. I want large text field with scrollbar. Like chat log or, you know, something like that:

    15:31 - You see ahmadnbl answered your question.

    15:32 - You download ahmadnbl`s example.

    15:33 - You need to update your construct2.

    Scroll down to see newest events.

    Anyway. Before you posted your example i used "anchor" plugin, but now i will use parallax. So thanks a lot, fellow.

  • Greetings.

    I have two questions:

    1) Texts. I need some kind of logging in my rpg, but default text plugin has no scrolling (as far as i see). Is there any way to create, keep updated and show log file with vertical scrolling?

    2) Lists. Player`s inventory is a default list plugin (little bit mad, yeah). Now i have a problem with long names - they doesn`t fit list box.

    Looks like "| A very strange stone with scratches on the surface and some carv|".

    I thought problem can be solved with 'white-space: nowrap;' in custom CSS, but no, nothing happens. So, what can i do to prevent it? Can items in list have 2 or 3 rows of text?

    And: can i set an external css file for list?

    Thanks a lot for your help, your suggestions, and your patience while my english is suddenly weak this time.

  • Oh, i`m so happy, look at the today`s update:

    Second, the new Persist behavior allows you to make persistent layouts. Normally if you leave a layout then return to it, all its objects have reverted to the initial state as you designed in the editor. Sometimes this is annoying if you want, say, the player to return to a previous level but with all the enemies they killed and powerups they collected still gone. Now you can simply add the Persist behavior to objects you'd like to remember - in this case, the enemies and powerups. Then on returning to the layout, all those objects are exactly as you left them.

    Yay!

  • 1 - i`m afraid gui layer will make hard lags when switching (but im not sure and i can`t check because project is on the designing stage)

    2 - some in the global variables, some in dictionary

  • I`m making an RPG game where the main game field and character statistics are on the different layouts (well, i thought it`s possible). But now i faced the problem: switching to stats layout and back sets my main layout to the default state. And that`s a drama for me.

    So, the question is: what am i doing wrong? How to switch between layouts without losing it`s vurrent state? Or, if it`s impossible, how can i solve this problem?

  • Hi, constructers. I`m experimenting with pathfinding and trying to make some oldschool rpg-style (grid) movement. I have no problems with grid movement, no problems with pathfinding, but no success with combining first and second.

    Anyone have any idea how to make character to find path and move along it by grids, not smooth and directly?

  • guys, scheme with AJAX doesn`t work and i can`t figure out why.

  • Kyatric, thanks a lot, as always :)

  • Is there any opportunity to buy business edition in Russia widthout foreign trade activity? Any retailers or other way to do it?

  • I`m trying to make an example of cooperative mini-game. Something like that: five people at the same time on different notebooks or tablets or smartphones should press and hold the big-red-button for a second. When the last one will press and hold it for a second, everyone of them will hear... ummm... TADAAA.

    For some reason i`m sure that somebody already posted something relevant here but i had no luck to find it. Can anybody help me?