farflamex's Recent Forum Activity

  • I have a tilemap that I wish to scale differently to the rest of my game, so I've set it on it's own layer and scaled the entire layer. I then wish to set the top/left of the tilemap to the top/left of another object (a sprite), or the centre of both objects would work. It looks like the tilemap is automatically set at it's top/left, while sprites are set to the centre (or wherever you place the origin?). Due to the different scales on the layers, I'm not sure how to go about it. Is there a simple way, or am I going to need to work it out with a bit of math?

  • Ah ha, thanks, that's quite well hidden away. Got it now, thank you

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I think my brain is having a day off or something is wrong with my editor. I've added my tilemap, I have it selected, but I can't work out how to change the tiles (I've done it a few weeks ago, but can't remember the process). Following the manual, it says to click stuff in the 'tilemap bar', but I see no bar. Where should it be?

  • Ah yes, I wasn't aware of that. After creating 2, it'll only have one selected, so to speak? So a pickall should fix it... well I've changed it now, but good to know

  • That might work I guess, though looking at that code, it makes no sense. If one listbox works, the other should, or neither. In the end I ripped this part out and rewrote it differently, so I've got it to work another way now anyway.

    Thanks.

  • I know there's an issue with objects not being recognised immediately after they've been created if on the same event-level (the bane of my C2 life), but this appears to be something else.

    I need several listboxes. I'm creating 2 and giving them a variable 'Number' to identify them. I then try to identify each and add an item. The first isn't recognised and doesn't respond, but the second does. They're both one sub-level below the creation and on the same level. Is this a C2 thing that I don't know about, or am I doing something very silly? I've attached the code below, have stripped it of everything except the basics. Listbox0 here doesn't respond (if I put a sound in that section it doesn't trigger for example).

  • I'm looking for really simple mini-games, that I can add to my main game. The game needs to be fun (of course), simple, intuitive and fast (10 to 20 seconds, or 'turns' or so). With so many games out there, hopefully people can point me to a few. I've checked loads of games, but can't find any that I really like so far.

    I tried a mini-game of my own creation, but it wasn't much fun. I made a simple 'Space Invaders', but that wasn't that much fun either (not when you need to play it over and over again) and took too long.

    The game also needs to have some way of generating a score, though I imagine that most mini-games do that anyway.

  • I'm working on a Soccer management game, which will require at least 3000+ players. Each one is best stored in an object, which is currently a text object (could be any object though), which is invisible and offscreen. It's running fine, even with 10,000, presumably because they're not checking for collisions or being shown. But would this be innefficient memory-wise and should I perhaps consider arrays or something else?

  • I was yes, it's been a while, but I did get it working. If you want an update for your own work, I can probably post some code.

  • From C2 to PHP? If it's 5, I'd put them in an array and send them as above. You could do it as I did it at first, by making a string, separated by a symbol (e.g the pipe '|') and then 'explode' them at the other end.

    Have to say, having done quite a bit of PHP and C2 now, I'd go with json_encode all the time if it's already an array at either side. For a small amount of info, I'd probably just send it as a string.

  • k, I'll reply on the JW thread.

  • troublesum ... Sorry to bother you again but you seem knowledgeable on this stuff, so any ideas why this is happening? Pasting this from my other thread...

    I know this should be fairly basic so I must be doing something wrong.

    I'm sending a json_encoded string from my php file to C2. The string shows [4,3,1,3,1,2,1,1,0,3] when C2 receives it (when set in a text object). It's just 10 numbers in PHP.

    I then try to load it into my C2 array with Array -> Load from JSON string (String).

    The array is still empty, so I'm doing something wrong. Any ideas?

    Can you identify which stage this is going wrong at? Does that string [4,3,1,3,1,2,1,1,0,3] look like a json string to you? That's what it's showing when I echo it from php to a browser, then when I show it in a text object in C2, but when I convert it into my C2 array it's just empty.

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