dop2000's Forum Posts

  • Almost. You need to actually destroy the enemy, and move "On destroyed" event from sub-event to top level.

  • It needs time to accelerate/decelerate. Try setting them to 0 and see if it helps.

  • Or even easier with a function:

    On Enemy destroyed
    	Function call "ActivateEnemy" parameter: (Enemy.id+1)
    
    
    On function "ActivateEnemy" 
    Enemy compare variable id=Function.parameter(0)
    		Enemy set visible
    
  • Why would you need 100 events???

    On Enemy destroyed
    	Variable tempID
    	set tempID to EnemyID
    
    	Enemy pick all
    	Enemy compare variable id=(tempID+1)
    		Enemy set visible
    

    That's it!

  • Set acceleration and deceleration speed to 0.

  • Both will work. Whatever is more convenient to you.

    Like I said, it will probably be easier to put all monsters on the layout (deactivated and invisible). When a monster with ID=1 is destroyed, pick monster with ID=2, set it visible and activate its behaviors.

  • What do you mean by "classify"? Display on the screen?

    If you have a list of similar values (rankings), you should not use variables for storing them. Instead, store them in an array or dictionary. You can easily sort the array.

  • Is there a question?

  • When exporting the game, there is an option "deduplicate images". I believe then objects with identical images will share the same image in memory.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Yes, duplicate objects will use more memory. This at least is true for Construct 2, in Construct 3 you can choose to "deduplicate images".

  • So how do you want it to work? You touch the sprite, swipe right and the sprite should fly to the right?

    You need to tell more about your game, because there are many ways to do this.

  • Don't set these objects global.

    This should not happen. Try running the game in debug mode, see maybe the objects are still there but invisible or off-screen.

    If nothing helps, please post your capx

  • You do not have permission to view this post

  • Define "classify"?

    With 2-3 variables you can simply compare their values. With more variables it will be easier to put them all into an array and do "Array Sort".

  • Why do you need to export with C2 runtime? It's not a great idea since C2 runtime will also soon be deprecated.

    If you are certain you need to do this, it's possible to add old function object, I did it myself recently. I believe apart of modifying the c3proj file, you also need to copy Function.json and add at least one "on-function" block to one of the event sheets. It may be easier to create a blank event sheet for this purpose in your project.