dop2000's Forum Posts

  • All this is possible by manipulating vectors X/Y, but it's not an easy task and will require a lot of experimenting. Here is a quick and dirty demo with the wind blowing to the left:

    dropbox.com/s/6kcp0dkotvqio1z/PlatformWithWind.c3p

    Sorry, it's for Construct 3, but you should be able to open it in the free version of C3.

  • Try this:

    Variable jumpCount=0
    
    On Landed -> Set jumpCount to 0
    
    On Jump -> Add 1 to jumpCount
    ... (sub-events)
    ... Compare jumpCount=1 -> Set animation "Jump"
    ... Compare jumpCount=2 -> Set animation "DoubleJump"
    
    
  • At the moment the screen is touched, it's impossible to predict whether this is going to be a tap or drag.

    You need to use "On touch end" and compare the time passed and the distance between where the touch started and ended, but I'm guessing it will not be much different from "On tap" gesture.

  • I don't understand the issue. When you use "Set time scale 0", everyhting is paused, including all Wait actions.

  • To put the game on pause, set the time scale to 0, either global, or the time scale of all moving objects (player, enemies).

    Also, try not to use "Wait" in game mechanics for things like waterproof mode, because you have no control over it. Use Timer behavior instead, which you can pause/resume/cancel etc.

  • I suggest fixing event 91 too. Mistakes like this can cause bugs that are really hard to find. So you have this event:

    If WP_mode=1 : Wait 7 seconds, Set WP_mode to 0

    What will happen - it will reset WP_mode to 0 after 7 seconds. And then all the delayed "waits" will continue resetting it for another 7 seconds. Even if on second 10 you set WP_mode to 1, it will immediately become 0.

  • Kind of, but it allows to save the data permanently.

    When you need to save the new keyconfig - 
     Local Storage Set "custom_keyconfig" to JSON.ToCompactString
    
    
    On start of layout:
     Local Storage Check if item "custom_keyconfig" exists
    
    Local Storage if item "custom_keyconfig" exists
     JSON parse from LocalStorage.itemData
    
    
    Local Storage if item "custom_keyconfig" missing
     AJAX request project file....
    
    
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • If the old functions work correctly in your project, you can continue using them, you don't have to convert to new functions.

    The new functions work very similar, but there are few key differences - the number of parameters is now fixed, you can't have duplicate function names etc.

    construct.net/en/make-games/manuals/construct-3/project-primitives/events/functions

  • You can't rewrite the project file.

    The most common solution is to save the new JSON info in Local Storage. Then, when your game starts, check Local Storage - if it contains new keyconfig, load it from Local Storage. If not - use AJAX to request the default values from JSON file.

  • Try to make the collision polygon as round as possible. If this doesn't help, you have two options:

    1. use Physics with circle collision mask.

    2. use raycasting feature of LOS behavior - cast a ray forward to get the correct reflection angle, and then bounce the ball at that angle.

  • I am pretty sure this is not possible.

  • Try searching the forum for C3 versions of these addons, but I doubt they exist.

    If you can't find them, the only option is to manually remove these objects in Construct 2, and replace with standard plugins. (for example Button and Textbox)

  • You mean the typewriter effect? Add a text object, use "Text Typewriter text" action

  • Please trust that my code is fitting your project much better than your code.

    The general rule of thumb is that if you need to repeat something more than 2 times, then you are doing it wrong.

    Making 20 layouts for 20 quiz questions is wrong. Making 20 identical Player sprites and 100 checkbox objects for those layouts is wrong. Having 500 events and 1000 actions just to check the correct answers is terribly wrong.

    Don't copy-paste your broken code, don't discard words of advice that you don't understand. Try to learn new things (functions, families, arrays etc.) and you will see how easy it is in fact to make good working apps in Construct.