ans32game's Forum Posts

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

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

  • 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

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

  • 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? Do I need to place them with a tile object?

    translate

  • 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

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • > > {"is-c3-clipboard-data":true,"

    >

    > You know that we can't paste your code without adding all the same objects first? Next time please post screenshots.

    >

    > Try this:

    >

    >

    >

    >

    >

    Thanks for the reply. Is this done correctly? If it is, I guess I can't send data. The text is not updated.

    I noticed my mistake here, I corrected it but I still couldn't get it to work. If the layout is correct, I guess I can't send data. Thank you for your answers.

  • > {"is-c3-clipboard-data":true,"

    You know that we can't paste your code without adding all the same objects first? Next time please post screenshots.

    Try this:

    Thanks for the reply. Is this done correctly? If it is, I guess I can't send data. The text is not updated.

  • Hey there.

    It looks like you're trying to access the data before parsing the WebSocket message. The parse needs to come first.

    Thank you very much for your answer. I am trying to do it with the help of artificial intelligence, I think the parsing you mentioned is there, but it still does not write data, or it does not pass at all. If it were coming, do you think this is correct? google translate

    	{"is-c3-clipboard-data":true,"type":"events","items":[{"eventType":"block","conditions":[{"id":"on-start-of-layout","objectClass":"System"}],"actions":[{"id":"connect","objectClass":"WebSoket","parameters":{"url":"\"ws://127.0.01:8080/\"","protocol-optional":"\"\""}}]},{"eventType":"block","conditions":[{"id":"on-message","objectClass":"WebSoket"},{"id":"compare-two-values","objectClass":"System","parameters":{"first-value":"JSON.Get(\"message\")","comparison":0,"second-value":"\"spawnTNT\""}}],"actions":[{"id":"parse","objectClass":"JSON","parameters":{"data":"WebSoket.MessageText"}},{"id":"set-text","objectClass":"usernameText","parameters":{"text":"JSON.Get(\"user\")"}},{"id":"set-text","objectClass":"usernameText","parameters":{"text":"WebSoket.MessageText"}},{"id":"set-from-json","objectClass":"debugText","parameters":{"json":"WebSoket.MessageText"}}]}]}
    
  • Hello, I am sending data with json but I think it is not receiving, where is my mistake? Can you help me? google translate

    {"is-c3-clipboard-data":true,"type":"events","items":[{"eventType":"block","conditions":[{"id":"on-message","objectClass":"WebSocket"},{"id":"compare-two-values","objectClass":"System","parameters":{"first-value":"JSON.Get(\"command\")","comparison":0,"second-value":"\"spawnTNT\""}}],"actions":[{"id":"create-object","objectClass":"System","parameters":{"object-to-create":"spawnTNT","layer":"0","x":"0","y":"0","create-hierarchy":false,"template-name":"\"\""}},{"id":"wait","objectClass":"System","parameters":{"seconds":"1","use-timescale":true}},{"id":"parse","objectClass":"JSON","parameters":{"data":"WebSocket.MessageText"}},{"id":"create-object","objectClass":"System","parameters":{"object-to-create":"usernameText","layer":"0","x":"spawnTNT.X","y":"spawnTNT.Y","create-hierarchy":false,"template-name":"\"\""}},{"id":"set-text","objectClass":"usernameText","parameters":{"text":"JSON.Get(\"user\")"}}]}]}
    
  • Hello,

    when design starts = play video1

    when video1 ends = play video2

    when video2 ends = play video3

    when video3 ends = play video1

    I do it this way but it doesn't loop, it plays once and then stops, it doesn't go back to video2.

    I tried all the ways but I can't. Can you help me?

    Thanks! google translate

    {"is-c3-clipboard-data":true,"type":"events","items":[{"eventType":"variable","name":"videosirasi","type":"number","initialValue":"1","comment":"","isStatic":false,"isConstant":false},{"eventType":"block","conditions":[{"id":"on-start-of-layout","objectClass":"System"}],"actions":[{"id":"play","objectClass":"video1"}]},{"eventType":"block","conditions":[{"id":"has-ended","objectClass":"video1"},{"id":"compare-time","objectClass":"System","parameters":{"comparison":0,"time-seconds":"5"}}],"actions":[{"id":"play","objectClass":"video2"}]},{"eventType":"block","conditions":[{"id":"has-ended","objectClass":"video2"},{"id":"compare-time","objectClass":"System","parameters":{"comparison":0,"time-seconds":"5"}}],"actions":[{"id":"play","objectClass":"video3"}]},{"eventType":"block","conditions":[{"id":"has-ended","objectClass":"video3"},{"id":"compare-time","objectClass":"System","parameters":{"comparison":0,"time-seconds":"5"}}],"actions":[{"id":"play","objectClass":"video1"}]}]}
  • I think I solved it like this. When it's over, compare the time and make it equal to =5, it doesn't play again.