farflamex's Recent Forum Activity

  • I'm using a paint package to make a small monochrome image (a tile) on a transparent background. It's fully transparent in the paint package and I've done this many times before. All I usually do is just copy it from the paint package into the clipboard and then paste it into the image editor, but it's arriving without the transparency. Any ideas what's causing this?

  • Just a couple of minor points, not the solution to the main issue.

    You don't need 'index' in layout 0 as a variable. Construct has a 'loopindex' anyway which will just be set to the current number of times the loop has passed. So just replace 'index' with 'loopindex' and remove your index variable (and the 'Add 1 to index').

    You don't really need the label 'each question' in the loop. I'm not sure if you're mixing it up with a foreach loop and was trying to name it appropriately. But in this case, you don't need a name for the loop at all.

    I've sent a request but I can't see what's going wrong. What I'd do is run in debug mode, then at the start of layout2, check to see what's in text. You can then see which layout isn't working, that'll be a start.

  • My bad, it was precisely that. I had - header("Access-Control-Allow-Origin: *"); at the top of the file on my server but not on my localhost. Just adding that at the top fixes it. Thanks.

  • Thanks Ashley. I do have that when I'm connecting to my uploaded files on my server. But it doesn't seem to work the same with a localhost (i.e everything just running on my local PC). I'll try fiddling about, see if I can get it to connect.

  • I'm testing my server on Xampp, rather than directly to a web address, mainly because it's easier and a bit less fiddly to do it on my own PC. But can I get Construct to connect to the localhost? Just copying the url from the browser into C3 doesn't work, it doesn't seem to be connecting.

    I can obviously just upload the tested scripts and then have C3 connect there but if I can do it all 'offline', that's a bit easier during testing.

  • Nice set of tutorials, thanks, I'll keep em bookmarked.

  • Ok, I think I've worked it out.

    I needed to do :

    JSON.For each entry in ""

    (subevent) - JSON.For each entry in "."

    That at least extracts the values individually.

    EDIT : Formatting issue with the forum again. The 2nd line a sub-event of the first.

  • Again, mine is a 50x50 array, I didn't want to paste that here, but yes, it would show as you typed it above in a 2x2 array.

    So is is possible to parse that to a C3 array?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Yes, typo. I typed it by hand from the screen and the forum box changed it slightly (i.e it separated the first square bracket for some reason).

  • Well I'm making my array in PHP and that's how arrays are formed. Is there no way to extract it line by line and then manually parse it into a C3 array?

  • I have a simple 50x50 PHP array, just integers that I'm trying to parse into a C3 array.

    For simplicity, if it was a 2x2 array, the JSON looks like this..

    [

    [3,2][4,1]]

    I assume that the first step is to parse this into a JSON object from AJAX.LastData. I AM receiving the string fine, as it looks above (although it's 50x50).

    I'm trying some kind of 'JSON : For each entry in', but I can't get it to work. If I try 'For each entry in ""' it just skips to the end in the debugger. Likewise, 'For each entry in "."'

  • Would I be correct in thinking that a lot of sprite fonts would use up a lot of memory? Say that I had 10 lines of text, if I used sprite fonts, would EACH of them require a copy of the graphical font?

farflamex's avatar

farflamex

Member since 7 Oct, 2012

Twitter
farflamex has 15 followers

Trophy Case

  • 12-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • x2
    Popular Game One of your games has over 1,000 players
  • Famous Game One of your games has over 10,000 players
  • RTFM Read the fabulous manual
  • Email Verified

Progress

18/44
How to earn trophies