farflamex's Forum Posts

  • One of my games doesn't even have addons, but it looks like other people have been able to play them, since they've been played and rated. Also, I can hear the music, but I just get a white screen. So it looks like they do work, but I simply can't see them on my screen (though I can see games that other people have submitted).

  • Uploaded my game to the new arcade but all I get is a white screen.

    The game is quite large in size and contains an add-on behaviour. Are these allowed? Is there a size limitation? It uploaded fine and I can play other games, but I just get a white screen for mine.

    https://www.scirra.com/arcade/strategy-games/korelos-34

  • Thanks Ashley. I did have my own capx to demonstrate it, but Ramones beat me to it while I was trying to work out how to upload it - besides, his is better

  • One thing I've noticed on my mobile is that when I select an item in a listbox, and then select another listbox, both boxes remain highlighted with a blue background. In fact, if I select an item in all 10 boxes, they all remain highlighted. I don't know how to turn this highlighting off. Unfocusing the box doesn't work, nor setting the selected item to an odd number (e.g -1). I thought it might be just on IE since my mobile uses IE but it doesn't do that in IE on my PC. Any ideas how to unhighlight the listbox text?

  • Wow, thanks dude. I was thinking I might have to abandon the listboxes and use something else but perhaps this is doable after all

    Perhaps something for Ashley and co to look at? I know listboxes aren't crucial to most games but it shouldn't be a huge job. Or does the browser do all the work, so it's not a C2 issue?

  • I've been using a few listboxes on my new project and was struggling with performance. At first I thought the problem was either filling the listbox with too many items, or the way I was filling them (from objects). For example, if I had 1000 objects and tried to put an attribute from each object into several listboxes, it seemed to take several seconds to fill.

    However, I tried a new, very simple project and I noticed that the performance is actually very good except when clearing the listbox. If I clear 10 listboxes (with 100 items), it takes about 2.5 seconds to complete (the more items to clear, the slower it gets, it's not noticeable with the 3 initial items). Filling the listboxes with 100 items only takes about 0.025 seconds. Even doing a fairly complex fill is very fast, it's just clearing the boxes which is so slow.

    Is this to be expected and is there anything that I can do to speed things up a bit?

  • I'm scaling a layer, which contains a tilemap, using the 'CanvasToLayerX' etc commands (which I find very confusing, but they seem to work). I then find the position that's been clicked/touched with 'MyTileMap.PositionToTileX(Touch.X("TileMapLayer")) (same for Y obviously).

    It works fine on my PC, a friend's PC and on my phone, but it doesn't work on his phone. It looks fine and seems to scale correctly, but the touch command is returning the wrong tile.

    Since it looks ok, I'm guessing my 'CanvasToLayerX' command is correct....

    CanvasToLayerX("TileMapLayer",LayerToCanvasX("Background",TileMapX,TileMapY),LayerToCanvasY("Background",TileMapX,TileMapY)) .... (that's just the X, same is done for Y). This is obviously just to ensure that it's centred correctly on the screen, using the 'Background' layer which isn't scaled or offset or anything.

    Looks ridiculously complicated and I won't pretend to understand it, but it does work.

    So am I using the wrong command for the input, or am I doing something obviously wrong?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks. Actually I think just WindowWidth and the Viewport options do also correctly show the screen size, on phones at least. I'm tinkering around with a phone game but wasn't quite sure how the screen sized itself, but I think it's permanently set to whatever the max size of the phone is... I think.

  • Is there a way to find the maximum window size for the device you're using, during runtime and then setting the window to that size?

  • Ok thanks. That did actually work. It's just a bit fiddly because I don't know how long it needs to be. I guess I'll work it out through trial and error

  • Problem Description

    I create a sound with Audacity. It's just a very short click. Export it to a WAV file, then import into C2. C2 locks up completely and can only be shut down via the Task manager. If I export other sounds (longer sounds seem ok) using the identical method, they work fine. This problem happens in a brand new project. It seems to be something to do with the length of the file?

    I can't add the sound file as an attachment. Is there some way I can send it in as a test? It's not JUST this file. Doesn't matter how many ways or times I create a similar file, it crashes. But slightly longer files seem fine.

  • Is there a way that I can attach a sound file or send it to Ashley? Even if I try to import it into an new C2 project, it locks up C2 completely. It's a standard WAV file exported from Audacity. Very short, just a click. Other files exported in the same fashion work fine, but this one locks up any C2 project (and I've seen it from other sound files). Maybe if I can send it to him, he can reproduce it?

  • I've just encountered this again and I see my original post is from 18 months ago. It's still happening, I import a WAV and the import bar loads to the end, then just locks up. The only way out is to shut down C2 through the task manager.

  • Ah thanks, I was hoping it was that. It used to add the wav during the process but now it doesn't... which is good I suppose

  • I'm importing a wav sound file. It converts successfully to ogg and m4a but the wav itself isn't inserted into my project. Do I need to change something.. or do I not need the wav file itself?