dop2000's Forum Posts

  • All Android controllers I've seen (Moga, Nvidia Shield portable, Sony Xperia play etc.) work as generic HID controllers or keyboards. I'm surprised Ouya is different.

    Check out this project - it queries all pressed buttons on connected keyboards and gamepads.

    dropbox.com/s/fid513eo83ge26u/KeysCollect2.c3p

  • Do you mean something like this?

    construct.net/en/free-online-games/physics-ragdoll-template-23487/play

    You can drag the doll with mouse.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • If you are planning to use Physics, here is a simple example:

    howtoconstructdemos.com/throw-a-physics-object

    Dragging a container object may be tricky. You can try attaching objects with pin for dragging, and then un-pin and re-connect them using Physics joints. But this may require a lot of trial and error.

  • You do not have permission to view this post

  • Desktop apps usually load more or less instantly as all the resources are available locally and so don't need downloading.

    Ashley

    It really depends on the game. There is a project which is 7GB in size, and even on a fast gaming PC it takes several seconds before the first layout loads.

    Could you add another option to the "Loader style" setting - "Logo only"? (without the progress bar)

  • It's possible to set an image as a splash screen for an Android or iOS export. But there is no such option for desktop exports.

    Is there any way to show a static image or logo (without the progress bar) while the game is loading?

    Note, that I'm not talking about the Loader layout, I mean the initial screen which is shown immediately when the game starts, before the Loader layout.

  • This is great, thank you so much!

  • This is not possible with events. The shortest code you can make is two actions:

    Set Player1Percentage to (character.Player=1 ? newValue : Player1Percentage)
    Set Player2Percentage to (character.Player=2 ? newValue : Player2Percentage)
    

    It's possible to refer variables by name in scripting.

    Or instead of global variables you can use a dictionary. Then you will be able to get/set dictionary keys by name like "Player"&character.Player&"Percentage"

  • Since you didn't post your code, I can only suggest studying the official turret examples in Construct 3.

  • Search for "trajectory" or "arc" on this forum, this is a very popular question and has been discussed many times.

  • Thanks, this is really helpful!

    There is one problem though - you can change the location of Documents folder in Windows. I don't think many people do this, but still.. In that case the folder may not be in the home directory at all.

    I'm surprised there is no default environment variable in Windows like %DOCUMENTS%.

    It is possible to get the folder location from windows registry, but I'm not sure how to do this in Construct. Run File "reg.exe query key_name >> file.txt", and then read that file?

  • Try installing any of these versions of the plugin:

    dropbox.com/s/ik417fflksmwkuh/easystartilemap_1_05_module.c3addon

    dropbox.com/s/3ptvb7en4gra8b4/easystarjs_module_myfixes.c3addon

    If still doesn't work, press F12 when you get that error and check for messages in the console log.

  • Most modern games create save files in the default Documents folder, for example \Documents\StudioName\GameName\save01.dat

    How do I find the path to this folder with NWJS?

    NWJS.UserFolder returns the path to my user folder, which is "C:\Users\dop2000\"

    The documents folder is there, but depending on Windows version it may be named "Documents" or "My Documents" or may be even be in some other language. So how do I locate it?

    And what is the best location for game saves on Mac?

    Tagged:

  • I want to understand, why a subevent doesn't work with "while" loop?

    Your event #1 on the second screenshot runs on every tick. There is only one condition (variable<10) which is always true. As a result this loop becomes infinite and the game freezes or crashes.

    In the first screenshot there are two conditions in the event. The first condition is true, but "every 0.5s" condition is false most of the time, that's why the loop doesn't freeze and the code works.

    But I would say both examples are wrong.