asdfghjkot's Forum Posts

  • Hi. Sorry if I have a lot of questions posted. I just want to learn. Also, here is the question... I have this enemy, enemy name and a health bar. The enemy sprite has a pathfinding behavior and I wanted to stick the text (enemy name) and health bar above the enemy. But the health bar and text doesn't stick above the enemy sprite. For now, I am using the pin behavior for the text and health bar, but it isn't doing what I was aiming for. Any suggestions? Thank you.

    Tagged:

  • Can I just send it to your email or somewhere?

  • Hi. Another question... Is there any other way wherein I don't have to put the AJAX.Last data in the log?

  • Well, it's working when I have the Browser -> Log in console: AJAX.Lastdata. But if I remove it, it's returning an empty AJAX.Lastdata. Thanks!

  • Also opened in browser and it returned the correct data...

  • This is what happens when I return a none concatenated variable...

    And this is what happens when it is concatenated...

  • Hi. Can someone help me with this...

    I have this variable with concatenated strings...

    Then I send it to Construct, and use it like this...

    But the problem is that it doesn't show anything in construct. But when I only return one string, it shows the result. (Sample is I only "echo $loot_array0;", then in construct, it shows the string in $loot_array0)

    Is there anyway that the concatenated string from the php file will show in Construct? Thank you in advance.

    Tagged:

  • Hi. I'm trying to create some enemies using an array and a for loop. I'm currently spawning the same object using for loop and adding different instance variable value. But the problem is that it only adds the value to the first spawned object and leaving the rest of the objects spawned with 0 value to the instance variables. Any idea that can help me with this. Thank you in advance! :)

  • I see. Thank you so much for the info. I'll go ahead and try those. :D

  • I can change it. Thanks. Also, another question. Can I still manipulate it even though the serialized array(which I will turn to a json_encode), is inside another json_encode result?

  • I have a column that contains a PHP serialized value and I was wondering how can I "unserialize" the value in construct? Thank you in advance again. :D

    Tagged:

  • I have an ajax request that stores the result in an array. It loops and spawns an image. I tried doing the one with the image point, but it just spawns all the images on that image point.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I have a number of objects that I wanted to spawn over an object after an ajax request had finished loading. What I wanted to do is something that is like the one in the image. Also, if possible, make the object to have a scroll or a pagination or something that can enable for all the stuffs to show. Hope someone can help me with this. It would be a big help in what I'm doing right now. Thank you in advance :D

  • Nvm. I already got it to show in the array. I just did some adjustments in both of my construct and php file. Thank you. :D

  • Yes, I did. It's the third picture. The output is in a json_encode format as well.