How do I make an infinite loop?

Not favoritedFavorited Favorited 0 favourites
  • 14 posts
From the Asset Store
For Adventure, Action, Heroes, Sci-fi and Action-RPG games.
  • Hello, An object is constantly falling down, hitting and destroying placed blocks. Maybe you've seen it on YouTube live broadcasts. I made Minecraft "falling pixace" but I placed the blocks manually, it affects performance a lot and is not the right approach. It should be an infinite loop. The blocks should be created automatically. How do I do this? I tried a lot but I can't, can you help me? Thanks.

    Google translate

  • For example, I placed the blocks with a sprite, is that correct? Do I need to place them with a tile object?

    translate

  • For example, I placed the blocks with a sprite, is that correct?

    Yes!

    Do I need to place them with a tile object?

    No!

    I placed the blocks manually, it affects performance a lot and is not the right approach. It should be an infinite loop.

    Infinite loop, good performance, check it: fileport.io/mTYng83AuDG4

  • I've been trying to make this infinite loop every day but I couldn't make it exactly the way I wanted! You made everything special! I'm amazed! =) Can I improve and use this? Do you have permission? I'm so confused and I really needed this.. I really appreciate it!

  • > For example, I placed the blocks with a sprite, is that correct?

    Yes!

    > Do I need to place them with a tile object?

    No!

    > I placed the blocks manually, it affects performance a lot and is not the right approach. It should be an infinite loop.

    Infinite loop, good performance, check it: fileport.io/mTYng83AuDG4

    I don't know how to thank you. The file is really great and works flawlessly. With your permission, I will develop it and use it in my live broadcasts. Please give me a link to thank you, I want to use it. google translate

  • Don’t worry, it’s a gift for you. You can use it anywhere without restrictions, and you have my full permission to do so.

  • Don’t worry, it’s a gift for you. You can use it anywhere without restrictions, and you have my full permission to do so.

    🙏🙏🙏 Thank you very much! So I want to ask a question. If the blocks completely disappear from the screen, I cannot generate blocks again. I tried all the ways but I did not succeed. What condition should I add or edit for this? google translate

  • 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 understand exactly what your problem is. Could you explain it in more detail?

  • I don't understand exactly what your problem is. Could you explain it in more detail?

    If I destroy the blocks that are visible on the screen, the blocks do not appear again. In other words, I need to create new blocks on the invisible part of the screen. Let me try to explain in more detail; I spawn more tnt and when it explodes, it destroys the blockers, if I spawn more tnt at the same time, new blocks do not appear on the screen until the pickaxe falls. I need to produce more blocks on the invisible bottom part of the screen. I hope I was able to explain. I don't want to take too much of your time, sorry. google translate

  • I spawn more tnt and when it explodes, it destroys the blockers

    Can you post a screenshot of your code showing how that "tnt" is spawned and how it destroys the blocks?

  • I shot a video:

    fileport.io/mzc7MLk3UFCq

  • > I spawn more tnt and when it explodes, it destroys the blockers

    Can you post a screenshot of your code showing how that "tnt" is spawned and how it destroys the blocks?

  • I spawn more tnt and when it explodes, it destroys the blockers, if I spawn more tnt at the same time, new blocks do not appear on the screen until the pickaxe falls. I need to produce more blocks on the invisible bottom part of the screen.

    I didn't know you were going to add powerful explosives that will massively destroy the blocks.

    What condition should I add or edit for this?

    Remove this code:

    And add this code:

    Here is the modified project file: fileport.io/awcNH8peSgxZ

    Now, even if your TNT destroys all the blocks at once, new blocks will always appear on the invisible bottom part of the screen.

  • I am grateful. Even though I got help from the AI, I couldn't do it. It's really great, thank you very much again. I am grateful! Thank you very much.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)