dop2000's Forum Posts

  • You can convert coordinates from layer B to A using these monstrous expressions:

    CanvasToLayerX("A", LayerToCanvasX("B", x, y), LayerToCanvasY("B", x, y))

    CanvasToLayerY("A", LayerToCanvasX("B", x, y), LayerToCanvasY("B", x, y))

  • Can you just add a constant variable? E=2.7182818284

  • You can set particles time scale to 10, wait a second and restore their time scale. To hide this initial stage, cover the whole screen with a black sprite with fade out behavior.

  • I believe you can add a script to the webpage, and call methods in this script from construct game.

  • Simply compare LevelNumber=5 -> Go To Layout "DifferentCutscene"

  • Usually this is caused by the collision polygon or origin image point location on the enemy sprite. When it collides with the marker and turns, it immediately collides the second time and turns again. To avoid this issue, make sure the collision polygon is rectangular and origin point is in the middle.

    Also, you can add a cooldown - for example, after turning, don't allow to turn again for 1 second. Use Timer behavior for this.

  • In your experience, do wait commands or system hiccups potentially contribute to this as well?

    No, I didn't have this problem. But I had to deactivate all groups of events that create random objects, particles, have "Every random(N) seconds" in them etc. Only when the seeded level generation is finished, I activate those groups.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Add a LevelNumber global variable. So when you need to go to the next level, increment this variable and use "Go to Layout (By name)" action to go to layout "Level"&LevelNumber

  • Oh, it runs "https://editor.construct.net" in NW.js now. Thanks!

  • Use a global variable, not an instance variable.

    Or you can set the object TomerText as Global.

  • Download links for both Stable and Beta releases in the first post now contain a singe json file and an icon. Does this mean the desktop app is officially retired?

    Could anyone please share the latest stable version? The one I have is C80 from 22-Feb-2020.

  • First of all, don't use "Trigger once" when multiple instances are involved, this is a common mistake which always causes problems.

    If you have multiple pressure plates and doors on the level, you need to use "For each plate" as the top condition. Also, you need to add a "state" variable to the plate. Here is how I would do this:

    For each Plate
    
     Enemies overlapping Plate
     or Box overlapping Plate 
     	Plate state="up"
    		: Plate set state "down"
    		: Plate move to (down)
    
     Else 
    	Plate state="down"
    		: Plate set state "up"
    		: Plate move to (up)
    
    
    

    You can also add all objects that can step on the pressure plate into a family, this will make things even easier.

  • You need to use a different action - AJAX Request URL "Myarray" & int(random(10)) & ".json"