ans32game's Recent Forum Activity

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

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • It goes on and on, it doesn't stop. Not all, but some. Strange, isn't it?

  • Hello, I am using the free version, when the design starts I play 1 video, when the 1st video ends I add a command to stop the 1st video and add a command to play the 2nd video. The videos do not stop, the others start. They continue to play as if they are spinning.

    Are they not stopping because I am on the free version? I also copied the event code: Where am I going wrong? Can you help me? google translate

    {"is-c3-clipboard-data":true,"type":"events","items":[{"eventType":"block","conditions":[{"id":"on-start-of-layout","objectClass":"System"}],"actions":[{"id":"play","objectClass":"video1"}]},{"eventType":"block","conditions":[{"id":"has-ended","objectClass":"video1"}],"actions":[{"id":"pause","objectClass":"video1"},{"id":"play","objectClass":"video2"}]},{"eventType":"block","conditions":[{"id":"has-ended","objectClass":"video2"}],"actions":[{"id":"pause","objectClass":"video2"},{"id":"play","objectClass":"video3"}]}]}
    
    
ans32game's avatar

ans32game

Member since 20 Dec, 2021

None one is following ans32game yet!

Trophy Case

  • 3-Year Club
  • RTFM Read the fabulous manual
  • Email Verified

Progress

5/44
How to earn trophies