Rogalog's Forum Posts

  • No one know the answer to this? :(

  • Another issue i've came across. When I upload my project to dropbox, and play it online, it takes a few seconds to change the font the default to the custom font when I get on to the layout. I have another textbox on a previous layout which loads the webfont also, but that doesn't seem to matter. Is there any way I can make it be the custom font instantly on the start of the layout?

    Thank you.

  • I literally just looked at that about 20 minutes ago, I completely forgot that I posted there, and it doesn't show notifications when someone else replies on that comment section. Thank you anyway, much appreciated!

  • Hello, i'm having a bit of trouble with my custom font on my game. I got it partially working with this tutorial (https://www.scirra.com/tutorials/237/how-to-use-your-own-web-fonts) however, it only changes the font to my desired font if I start on that layout. However, I want to start on the 'game layout' and move onto the other layout when the user has finished the game layout. Any idea to have the font working no matter what layout you start on?

    Here's my capx: dl.dropbox.com/u/148871510/level.capx

    Thanks a lot, Rogalog.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Is this possible? I'm getting the feeling it isn't, or that it takes a lot of work. Would just love to know if it's possible or not, so I don't end up wasting time. Thank you.

  • I've used arrays when acquiring the strings, but it's having them look good, e.g. having each letter in its own sprite, but still being able to target the word that's being 'tackled'. Really confusing me right now, haha!

  • Thanks lemo, i've added that and it's working well now. :)

  • Howdy guys and girls,

    I'm having a little trouble on figuring how to do this level of mine. Basically, I want the users to see if they can remember the words which they have typed in the previous level. On the bonus level, I want them to just be able to type, and the letters to appear if they are correct. However, i'm having trouble coming up with a way for them to select the word once they've typed the first letter as the words are all split up into individual sprites/text boxes. Another problem I can't seem to understand how to pass is if there are multiple words that start with the same letter, how to not pick one until the user has entered a second key.

    I know it's a difficult request, but could anyone give me some insight on how to go about this?

    Here is my capx so far: dl.dropbox.com/u/148871510/bonuslevel.capx

    Thank you, Rogalog.

  • Thank you for the reply.

    I believe it would work, however, I am using the QueryString plugin to call json files from another folder within dropbox for testing purposes.

    However, the json files can't be called if I used https://, however, the game refuses to work if I don't use https://. Any idea why that isn't working?

    Thanks a lot, Rogalog.

    Edit: false alarm. Sorry, I didn't change my json file addresses to the dropboxusercontent or my image URL's in the json file. Thank you for this post, fixed everything!

    Much appreciated!

  • Hello, until recently, i've been having these errors in my console log when trying to load my game:

    1. Uncaught Error: SecurityError: DOM Exception 18

    2. Application Cache Error event: Resource fetch failed (-1) *link to image*

    It seems to work on a separate server, but I want to be able to work through dropbox while i'm updating my game as it's easier to upload etc. Sometimes it just goes to a black screen after it's finished loading from runtime, and sometimes it gets to past one layout, and freezes. It doesn't always crash on the same cache event.

    Any idea how to fix this?

    Thank you, Rogalog.

  • I think i've managed to sorta correct my first issue, but the second one is beginning to be quite a pain. Is there anyway to preload the images to a sprite before that layout is called? It looks very bad when a layout begins and the images aren't there, they only appear after a few seconds....

  • rexrainbow

    Awesome, thanks dude. Turns out I was using CurKey, instead of CurValue which was my main problem.

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