dop2000's Forum Posts

  • You need to use Touch.SpeedAt(0) and Touch.AngleAt(0) expressions to detect swipe gestures. For example:

    construct.net/en/forum/construct-3/how-do-i-8/swipe-gestures-152726

    You can save the latest swipe direction in a variable. And then on every tick move the lawnmower in that direction.

    compare variable lastDir="left" : Lawnmower simulate control pressing left
    compare variable lastDir="right" : Lawnmower simulate control pressing right
    ...
    
  • That event should work. Check that you have assigned the correct event sheet to the GameOver layout in layout properties.

  • If you have all these values in Excel - does it matter how many there are? Just copy and paste them all.

  • It worked, thanks!

  • I have lots of PNG images added to the project Files folder and I want to check if a file with a specified name exists. I'm currently requesting the file name with AJAX, but it throws an error in console, so I'm looking for another way to do this.

    I tried this code, but it returns "No image" even if the image does exist:

    var image = new Image();
    
    image.onerror = function() {
    	console.log("No image");
    }
    
    image.src = "1.png";
    
  • If you have a paid job offer, you need to post in this sub-forum:

    construct.net/en/forum/game-development/job-offers-and-team-requests-28

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • newt Imagine if a movie you are watching would play at 80% speed because your TV can't handle 120 fps. This is just wrong.

    Also, why can't I play an animation at a higher than framerate speed? I have a fancy "magic charging" animation, which plays over 2 seconds. However, I want to play it in reverse twice as fast when it's discharging. Instead of simply setting animation speed to -120, I have to use workarounds like running a tween.

  • I just discovered that it's not possible to run an animation faster than 1 frame per tick. If I have a long animation, say with 200 frames, the fastest it can be finished is in ~3 seconds (at 60 fps). Even if I set animation speed=1000

    Why can't I speed it up, skipping some frames? Seems like a weird limitation.

    This also means that an animation with speed=60 will run slower on a 50Hz monitor, making this one of the fundamental mechanics of Construct frame rate dependent.

    Tagged:

  • Wise choice, Doctor! :)

  • Yeah, the prices are confusing. The page shows me $195.99 annual price. Which I assume is in Australian dollars?

  • The best solution is not to use Button object. Make your own button with a sprite, or sprite+text.

  • Put your data string into a variable (without the opening and ending quotation marks). And then use this variable in AJAX request.

  • If you absolutely need to share your capx with the publisher and you worry that someone could steal your project, you can obfuscate it before sharing. Rename objects, variables, layouts and event sheets to random combination of characters, delete comments from your code.

    If you spent 7000 hours developing it, you probably have many thousands lines of code. It will be extremely difficult for another person to "decrypt" it after those changes.

  • You can add all floor objects to a family to use in overlapping checks.

    If you have tiledbackgrounds and sprites, you will need two families, as a family can only contain objects of one type.

  • You can probably save FileChooser.FileURLAt(0) in a text variable and use it next time you need to reload the same file.