dop2000's Forum Posts

  • 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....
    
    
  • 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.

  • Just disable the two "Flip" actions.

  • Thanks, mekonbekon!

    Yeah, I know I can duplicate this event 4 times and adjust the expressions, but I was trying to make a single universal event. And then I got bored and gave up :)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • One clear mistake is event 91. It's executed on every tick, 60 times per second, creating hundreds of wait-threads. You should avoid using "wait" in events that are running on every tick.

    Also, are you sure that animation speed in this WP bar is set to 0?

    If all this doesn't help, try running the game in debug mode, pause it and check all variables etc.

  • Here you go:

    dropbox.com/s/f5sdcubms5mvq28/DrawingCanvasMirrorV.c3p

    If you don't need to flip the reflection, remove two "flip" actions.

  • I tried to make the reflection working from all angles, not just from the left. But I couldn't work out the math and gave up. Maybe someone else could fix it.

  • Wait a min, You got the 2nd prize for this? -_- Who won the first?

    This game:

    c2cgames.online/Games/Turtle_Power/Just_Training_Cliva

    I made a mistake of making the game too easy when I submitted it to the judges, I think that costed me the first prize. I wanted to make sure that everyone could beat the game and see all mechanics and read the whole story.

    (the version I posted here has about 3x times more enemies and the enemies are stronger and faster)