Rogalog's Recent Forum Activity

  • Hello, I'm having trouble with arrays using the HashTable. I basically want to take an array from my JSON file which I load from an external URL, and place all the items in an array in construct2. My array from my JSON file looks like this:

    {

       "en": ["word1", "word2", "word3", "word4", ... "word103"]

    }

    From the trial and error i've done, when I set my debug text to HashWords.ItemCnt("en") it appears as 103, so it's noticing that there's 103 items in the JSON array. However, I don't know how to get those words, and put them into an array in construct, all on the X-axis.

    Thank you for any help.

  • Hello folks, can anyone tell me how I should set out my array in the JSON file please? So far I have, for example:

    {

        "language": ["word1", "word2", "word3", "word4", "word5", "word6"]

    }

    I know the data is being retrieved from the JSON file using AJAX.LastData. However, i'm unsure how to acquire certain words from this array, and populate an entire array in construct. At the moment I have:

    On "wordsjson" completed:

       HashTable -> Load hash table from JSON string AJAX.LastData

       Array -> Load from JSON string HashWords.At("language")

    Thanks a lot, Rogalog.

  • Hey guys and girls, I have a few queries about my game.

    1. I have JSON files which are called through QueryString at the start of layout on my menu layout. However, for some reason it doesn't always load properly. From what I can tell, it doesn't load when the game isn't cached i.e. when they scirra logo appears and it loads all the game content fresh.

    2. In my JSON file, I have a URL for a player image depending on which sprite the player chooses externally. However, on the first time the player sprite is loaded, it takes a few seconds to show. Is there anyway I can pre-load it into a sprite so that it is shown instantly when the player reaches that layout. I've seen the plugin 'Load Image at from URL at runtime', however, this won't work as the URL for the image is dynamic, and will only be available at the start of my menu layout when it is called from the JSON file.

    Any help is appreciated, thank you.

    Rogalog.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Well, I assumed that's what the publisher of the plugin meant (http://www.scirra.com/forum/plugin-load-jsOn_topic50331.html). I'm still pretty new to construct 2, and I don't know of any other preview option.

    And basically, I export my project as HTML5 and when I upload that folder to dropbox, I want to be able to just click on the index.html and it will load the game instance for me. However, it either comes up with a black screen, or asks me to download the individual file.

    EDIT: Okay, i've figured it out now. It was just due to dropbox's recent changes to their public folders. Apparently you have to manually activate a public folder through your account before you can get the publicly available link. Thank you for the reply though!

  • Hey, I'm working with the LoadJSON plugin, and the publisher noted that it does not work in preview mode. I've tried hosting it on dropbox, so when you load the link, the game loads, e.g. dl.dropbox.com/u/10778449/coffeemug/index.html.

    But no matter what I do, it just keeps asking me to download the file onto my system. Have they removed this feature or something?

    Thank you.

  • Okay, just tried that. Split it into 200 frames, and even with 200 frames the quality is pretty bad. Doesn't look like this is possible then. :( Maybe something which allows videos to be put behind objects will pop up in the future.

    Thanks for the help anyway guys, greatly appreciated.

  • Thank you for the replies, I see that the Video Plugin will not work, as it completely covers the screen. As for jegcelorio's post, the video is only about 9 seconds long and I want it on repeat. How would I go about splitting it into frames as you suggested?

  • Hey, is there any possible way I can have a video looping in the background of a game? I've tried iFrame, but whatever I seem to do, it just loads over all of my other objects which is not what I want. Any help is appreciated. Thank you, Rogalog.

  • Hello, this is an awesome plugin, i'm just having a little bit of trouble. I want to have a looping video playing in the background of my game, but even when I put the HTMl iFrame on the bottom layer, and put everything else on top of it, it still covers my entire screen. Is there anyway to put it behind all other existing objects? Thanks a lot, Rogalog.

  • Hopefully this isn't frowned upon, but shameful self-bump! I get the feeling this isn't possible, or if it is, it's pretty difficult?

  • Hello, I was recently given an example game by the awesome 'procrastinator' (link: dl.dropbox.com/u/666574/rogalog%20-%20typing%20game.capx).

    Is it possible to have the colour feature reversed? So, for example, have the text stay white, but have the letters you type turn green, and then after a short duration (0.5-1 second) disappear?

    Thank you.

  • Ahh, damn! Hopefully that's not true, and it's still working and if not, it'll be working in the future! Quite a fun little game they've got going! :D

Rogalog's avatar

Rogalog

Member since 7 Dec, 2012

None one is following Rogalog yet!

Trophy Case

  • 12-Year Club
  • Email Verified

Progress

13/44
How to earn trophies