krish's Recent Forum Activity

  • timeline plugin is missing from the given download link location.

  • dinofun

    How is that done?

    I see a Set X or Set Y .. but dont see a set imagepoint on actions of any sprite.

    spongehammer

    Nah... I'm using array tiles to generate maze maps here.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi,

    Is it possible to edit / add /subtract from image points of a particular sprite using the event sheet?

    I wanted to set image points dynamically based on certain events... or say if I'm loading a sprite from URL, I wanted to set origin point to exactly center or 100 px away from center on Y-axis.

    I tried to look but couldn't find.

    Anyone?

    Thanks :)

  • Using something like this

    scirra.com/tutorials/360/generating-a-random-tile-map/page-1

    Wondering why if I had to say

    for-every tilesprite -> spawn an object -> someobject

    doesnt work.

    Nothing spawns.

    But same thing if I just include another action within the Foreach(x,y) of array section as

    system->createobject-> someobject

    It works.

    What I am trying to do is pick particular tiles from the generated tiles and spawn grass or something on it.

    Any help.

  • Ah sorry got it.. had my hash names wrong. :)

  • So I can't have multiple json's loaded into multiple hash objects? each hash object having a different name.

  • Alrightly, found it.. sending jsons via variables.

    Thanks :)

  • Guys,

    What is the proper way to make an ajax post call to an url with jsonData like

    { "my_name": "superman" }

    Right now I'm using something like

    Ajax post ->

    tag - foo

    url - myurl/parser.php

    data - ""

    Which obviously means my parser.php needs to reconstruct that url into a json.

    Is there a better way?

    thanks,

  • I have an include "anothersheet" at the top of a layout.

    And the "anothersheet" uses json loading into hashtable via ajax.

    Happen to notice that

    1. If you try to push "preview" from construct 2 when the browser is already running preview ...the preview reloads but the include doesnt run / ajax call is ignored?

    Because the JSON values all become zero!

    2. Even if you browser refresh the layout its the same case.

    3. "Restart" layout also doesnt probably call include / ignores new ajax call and uses cached values.

    Because try having a key for restart layout (say Esc).. and change the json on the fly, then press Esc.. it still uses old values.

    A work around for point#3, is to use On key pressed Esc -> Go to layout "samelayoutname" instead of "restart layout" .. that seems to make a fresh ajax request.

    So far, I haven't found a workaround for point #1 and #2.

    Any sane reasons why this is so?

  • I looked through the code, and it doesnt look like it will call a json which is not on same domain as c2 app.

    This is the shortcoming of JSON.

    XMLHttpRequests can only be made to URI's on the same domain.

    You'll need to use something like JSONP that uses "<script>" to do that.

    Almost tempted to try add that to plugin, but way short on time right now :(

  • thank you :)

    Will check.

  • Hey guys, in a vertical scroller.

    How do you generate a continuous building on texture rolling upwards.

    Any examples I can take a look at :/

    Thank you.

krish's avatar

krish

Member since 13 Nov, 2011

Twitter
krish has 1 followers

Connect with krish

Trophy Case

  • 13-Year Club
  • Coach One of your tutorials has over 1,000 readers
  • Educator One of your tutorials has over 10,000 readers
  • Email Verified

Progress

16/44
How to earn trophies