dop2000's Forum Posts

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

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

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I don't think it's possible with Construct.

    In the latest beta you can prevent your phone from going to sleep, but there is no way to wake it up.

  • It's hard to tell what can be the problem, but from my experience with this plugin, you should avoid doing anything else that can utilize random generator until you finish building the level.

    Don't create any particles, don't use choose() or random() expressions in other events that can run during or before dungeon generation.

  • Of course it's possible, but the solution depends on how your objects are organized. If you have a separate sprite with player's icons, the easiest option is to put it into the same container with Player sprite. Then the icon will be picked automatically inside the loop

    For each Player order by TurnCount
    	PlayerIcon set Y to 500+loopindex*40
    
  • It depends on the game and platform. For mobile devices you should probably try to keep it under 1-2K checks per tick.

  • Do you want to display player names? Then it can be something like:

    Every 0.5 seconds
     Set RankingText text to ""
     For each Players order by TurnCount
    	RankingText append Players.name & newline
    

    where RankingText is a large text object that can fit many lines.

  • 5800 checks/sec equals to less than 100 checks per tick - it's nothing.

    But if all these checks happen in one tick, this may cause micro lags of slow mobile devices.