quackgyver's Forum Posts

  • I sent an exported HTML game to a friend, who said that 3D mouselook doesn't work on Firefox.

    I tried it myself, and it seems to be correct. When using Firefox, X-rotating the camera on mouse movement doesn't work.

    What's even stranger is that it works on Firefox when using debug mode in the Construct editor, but not when using preview mode on Firefox without debug.

    When in the Construct editor's debug mode on Firefox, capturing the mouse movements seem to work fine as I can easily output the movement values to text, but for some reason it doesn't translate into camera rotation.

    I've attached an example which works fine in all browsers except for Firefox. However, it still works in Firefox preview with debug mode as previously mentioned.

    Attached example: dropbox.com/scl/fi/ustmlnw42fnwlgrng4wbi/firefoxcamera.c3p

  • macOS now has very specific requirements about permissions (you must extract the exported zip on macOS) and security (you must now always at least ad-hoc sign an app for it to be allowed to run). The most up-to-date advice is in our guide on the macOS WKWebView exporter, which although is for a different export option, the requirements regarding macOS running apps is the same. Construct's macOS WKWebView export option also exports some helper scripts to make this easier - if you use NW.js you'll need to do the same things manually.

    Would not following these steps return a message about the app being broken though? Because usually when apps are non-signed, macOS will be pretty explicit about it being a security issue.

  • Hello,

    Based on your message, I guess you want to test Browser or Ajax url ?

    If you want to test URL, you can press F12 and check "Network" for XHR request.

    If the window is not showing, you need to click outside of the game (but still on the preview game window)

    And if you want to test ingame, just create your debug mod.

    Put a text object on your game, and add some event that write logs you want.

    I'm looking to modify the URL parameters during runtime with the debugger open.

  • Since the preview function insists on opening previews in a new window instead of a tab (which for some reason overrides a browser's "tab over window" settings), and since the preview doesn't have an address bar, and since you can't remote debug, and since you can't copy the URL of the preview and load it in a new tab (which just generates a white page), how are you supposed to be able to test URL parameters with debug mode turned on?

  • I've never had issues with this before, but every macOS export I make now returns:

    “app.app” is damaged and can’t be opened. You should move it to the Trash.

    Is the export function broken?

  • Check the layer opacity and the tilemap opacity in the Properties Bar.

    The issue isn't opacity, because otherwise I wouldn't have been able to see the cursor changing into the selected tile.

  • I've never had this issue with Construct before, but for some reason I can't place tiles using the Tilemap object.

    The tiles show up just fine in the sidebar, and I can select them so that the cursor changes into the chosen tile. However when I click on the tile area in order to place the tile, nothing happens. The tile simply doesn't show up.

    Does anyone know what's causing this?

  • I've deployed my game to a web server, and I'm using mod_rewrite to rewrite paths under the game's folder into a query param - which is in turn then read by the Construct game.

    For the sake of discussion, we can assume that the game is deployed to /foo and that /foo/bar is rewritten into /foo?hello=bar.

    The problem is that Browser.QueryString returns completely empty when this mod_rewrite rule is applied (i.e. while /foo/bar is being rewritten into /foo?hello=bar), whereas if I navigate directly to the param then it works (i.e. if I write /foo?hello=bar directly).

    For troubleshooting purposes I've placed an index.php file in the same folder as the game where I've run var_dump($_GET) to ensure that the param outputs correctly while the mod_rewrite rule is active, and it works as expected.

    So my question is, what could possibly cause Browser.QueryString to return an empty string while mod_rewrite is used, despite the fact that the $_GET variable works just fine outside of the Construct game?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You say it should be one or the other, so which would your actions apply to?

    It would apply to the instances that were picked as part of the condition that returned true. In other words, any instance that returns true for an OR condition would be picked.

    If picking was reset between or conditions, that is what would happen. Which isn't what currently happens, but that was the provided example of what would happen if picking was reset.

    I don't understand, if OR-conditions un-pick instances that don't return true as part of an OR-condition, why would it not un-pick instances in the provided example?

  • + Sprite X < 500

    + OR: Sprite Y < 500

    You'd expect this to run actions with all Sprite instances picked that are left of X=500 or above Y=500. If it resets picking for every condition, it becomes essentially just "Y < 500" by itself, which will look broken again.

    I would expect this OR-condition to either pick all of the instances that are to the left of X=500, or pick all of the instances that are above Y=500. Even as we're talking about this, I struggle to think of what else it could logically do.

    Based on this thread, it sounds like what would happen is that it would pick all of the sprite instances that are to the left of X=500, while un-picking all of the sprite instances that are above Y=500. Is that what is supposed to happen?

    You could file a suggestion, but based on the problems I've shown, I don't see a better way it could work unfortunately! Then there's also backwards compatibility: we can't just change how thousands of existing projects work...

    Would it be possible to add a true OR condition? Or would that require fundamentally changing the way things work.

  • In my project I'm referencing music files by name.

    For some reason, if I move music files into subfolders in an attempt to organize them, they stop playing in-game.

    To make things stranger, this only happens for most- rather than all music files.

    My understanding is that folders are for organizing in the editor rather than for referencing, but despite that I'm able to reproduce the effect by moving music files in and out of subfolders.

    Why does putting audio files in subfolders have this effect?

  • That's a nice solution, though wouldn't it be more straight-forward to do something along the lines of:

     var OriginalMessage = "foo foo foo foo foo foo foo foo" 
     var MaxWidth = 10 
     var Index = 0 
     
     // For each word 
     foreach tokencount( OriginalMessage, " " ) 
     	Index = Index + 1 
     	CurrentWord = tokenat( OriginalMessage, Index, " ") 
     	var Line = "" 
     	var Message "" 
     
     	// The Line can fit more words
     	if ( len( Phrase ) + len( CurrentWord ) ) < MaxWidth 
     		Line = Line + CurrentWord 
     
     		// Add the last line in loop 
     		if Index == tokencount( OriginalMessage, " " ) 
     			Phrase = Phrase + newline + Line 
     
     	// Line is full, clear it 
     	else 
     		Phrase = Phrase + newline + Line 
     		Line = CurrentWord 
    

    I still think that this could somehow be expressed through a formula though. I wonder if anyone here has figured it out without looping.

  • Only idea that comes to mind is to use a tiledbackground object and use the "set face object" from the 3dshape with that.

    Yeah that's what I'm talking about. When you map an image to the face of a 3D shape, it's anchored to the same corner on every side.

  • Does anyone know of a good formula for word-wrapping based on an variable length limit?

    I.e. if I have String and the length limit is Foo, is there a good formula for splitting String in the right places so that it inserts line breaks where the lines would otherwise have exceeded the length limit?

    Thanks in advance.

  • When resizing a 3D shape that uses images for its faces, the face images are always anchored to the same corner on every side of the shape.

    Because of this it's impossible to tile 3D shapes seamlessly unless they're the exact size of their textures, because as soon as you reduce the size of a 3d shape it also shifts the position of its face images in ways that will often cause texture tiling issues.

    Is there any way to control the anchor/origin point for the images that are used as face images for 3D shapes?