ALGODOO SCRIPT ON COLLIDE SPAWN CRAZY MARBLES

Поделиться
HTML-код
  • Опубликовано: 12 сен 2024
  • Mechanism built on ALGODOO.
    This is a tutorial for those who are new to using Algodoo scripts.
    The scripts are many.
    In this video I will show you how objects are generated when other objects touch each other.
    Script menu: OnCollide.
    You can download the tutorial to try the steps and syntax.
    www.algodoo.com...
    You can download the three examples of objects with scripts.
    mega.nz/#!bJhA...
    mega.nz/#!PE5m...
    mega.nz/#!2Nxw...
    #algodoo #creativity #script
    If you want to try this scene, download ALGODOO (It's free).
    Click on the links below.
    link algodoo:
    www.algodoo.com/
    Have fun
    👍 THANKS FOR WATCHING 👍

Комментарии • 55

  • @unluckypanda5448
    @unluckypanda5448 2 года назад +3

    so underrated! the attention to music is incredible :0

  • @happyentertainment8003
    @happyentertainment8003 2 года назад +2

    dang darn this opens so many possibilities

  • @TW-qq6fi
    @TW-qq6fi 3 года назад +1

    this is really well made and informative, I'll be using these tips, thank you so much!

  • @cookieracer
    @cookieracer 3 года назад +2

    You don't have to set ANYTHING in scene.addcircle({}) 😅

  • @LeKhang98
    @LeKhang98 3 года назад +1

    very helpful thank you very much

  • @nathanchen5375
    @nathanchen5375 3 года назад +3

    Very useful! I was just wondering how do you temporarily destroy the marble spawner and then add it back so that the scene wouldn't flood with marbles? In other words, is it possible to make the spawner disappear for 3 seconds then have is reappear and take effect once more? Also, how do you add a tracer (path) to a cloned/spawned marble? Thank you very much!

    • @algodooscenecollection3048
      @algodooscenecollection3048  2 года назад

      Thanks!!😃😃
      What you ask me is difficult to explain.
      However you can try this!
      mega.nz/file/fVpCxZba#xdjjQtCPrR4TP-_NyFOnDlHN0Cf5s3lSEqEQHtTkA3o
      Have fan!!

    • @happyentertainment8003
      @happyentertainment8003 2 года назад +1

      I will too :)

  • @FristajloPL
    @FristajloPL 4 года назад +2

    I missed one thing... How can I copy all properties of one body, to paste them to "OnCollide" of another body?

  • @china5322
    @china5322 3 года назад +2

    Canale Italiano ?

  • @rook1emus1c2
    @rook1emus1c2 3 года назад +3

    Hello, i've been looking for a way to have a ball change color once it touches another object (e.this.color = e.other.color), however i want to exclude the black color. I've tried using if statements based on the Thyme syntaxis but have been unsuccessful, im also not very proficient with algodoo scripting so i might have been wrong on the syntaxis but i would still appreciate some help, here's the code i used:
    (OnCollide module of the ball that i want to change colors: )
    (e)=>{
    e.other.color != [0.0, 0.0, 0.0, 1.0](?)({
    e.this.color = e.other.color
    }(:)({
    e.this.color = e.this.color
    }))
    }
    Leaving the "else" space blank also doesnt work.

    • @algodooscenecollection3048
      @algodooscenecollection3048  3 года назад +2

      Hello,
      When you make a mistake in the scripts, Thyme inserts round brackets.
      When correcting the script, you need to delete the added round brackets as well.
      So the script works!
      (OnCollide module of the ball I want to change color :)
      (e)=>{
      e.other.color != [0.0, 0.0, 0.0, 1.0] ? {
      color = e.other.color
      } : {}
      }
      Hav fun!!

  • @samvidhkumar7014
    @samvidhkumar7014 3 года назад +2

    bro how spawn marbles 1 per second with any collisions
    only they are just spwaning 1 after another per second from one spot

  • @bpassosdev
    @bpassosdev 4 года назад +2

    Hello, i need to put a name in a marble and when this marble touchs a surface his name is show on this surface (Text space). how can i do this? This need to works with a lot of marbles crossing this surface and the text will change when they touch (His names is show).

  • @kaueopedro
    @kaueopedro Год назад

    How can i use the example 3 (eat marbles) just to respawn the balls? With each original colors and without the collision effects.

  • @deadlost23
    @deadlost23 2 года назад +2

    Can I have a full link.?

    • @algodooscenecollection3048
      @algodooscenecollection3048  2 года назад

      Hello!!
      This is the link of the scene on Algobox!
      Have a good time!!
      www.algodoo.com/algobox/details.php?id=211264

  • @kenzoru8153
    @kenzoru8153 4 года назад +3

    can you share the script for spawning marbles?

    • @algodooscenecollection3048
      @algodooscenecollection3048  4 года назад +2

      Hello.
      You can use this script.
      Go to script menu and replace the script below in the "onCollide" box
      (e)=>{
      Scene.addCircle({
      timeToLive := 0.5;
      attraction := 0.0;
      vel := [0.0, 0.0];
      restitution := 0.5;
      onCollide := (e)=>{};
      collideSet := 1;
      drawBorder := true;
      friction := 0.5;
      color := [0.97907513, 0.097240277, 0.26745108, 1.0];
      drawCake := true;
      pos := e.pos;
      density := 2.0;
      radius := 0.13;
      edgeBlur := 0.0
      })
      }
      Good day!

    • @smartalex1697
      @smartalex1697 2 года назад

      @@algodooscenecollection3048 How do I glue it to the background?

    • @CXX425
      @CXX425 2 года назад

      @@algodooscenecollection3048 how do i make it so that when it touches the spawner, it can go to a specific place like a non-pos teleporter

    • @gamer-fy6kf
      @gamer-fy6kf 17 дней назад

      @@algodooscenecollection3048I wasted all my time thanks alout

  • @TimeInc1033
    @TimeInc1033 4 года назад +1

    Hi , can you help me? i just want to stop axle with car wheel(engine off) on hit by laser ,
    then turn it on ,when laser is not hiting the wheel

    • @algodooscenecollection3048
      @algodooscenecollection3048  4 года назад

      Sorry I'm late!
      Yes I can help you!
      Try this scene!
      enjoy !!
      mega.nz/file/WQx0UKQZ#ke2jJuJa2im_-Wqdu_i6qorx4pLq9PnGwtL9hcYWDsI

  • @Kenlimepie
    @Kenlimepie 4 года назад

    Yes.

  • @critixil
    @critixil 2 года назад

    How ctrl + c ctrl + v the object?

  • @ninja_strong364
    @ninja_strong364 2 года назад +1

    can you give me a script for my piston explode pls i need it for my piston

  • @JustinBartholomew-gm1dy
    @JustinBartholomew-gm1dy 3 месяца назад

    How to copy

  • @smartalex1697
    @smartalex1697 2 года назад +1

    But I still have to type the scripts!

  • @alvinplay8939
    @alvinplay8939 Год назад

    How do you copy an object to script menu

  • @FNXGame
    @FNXGame 3 года назад +1

    I nned your all codes plz

    • @algodooscenecollection3048
      @algodooscenecollection3048  3 года назад

      Hi, you will find many codes here !!
      Good fun!
      www.algodoo.com/forum/viewtopic.php?f=13&t=11845&p=84931&hilit=fadeColor&sid=c2b5004791a98c3887f5794f4850f454#p84931

  • @spaceguy20_12
    @spaceguy20_12 Месяц назад

    that intro hurt my ears

  • @MrMymy-hw5ik
    @MrMymy-hw5ik 2 года назад +1

    post script in comment pls

    • @algodooscenecollection3048
      @algodooscenecollection3048  2 года назад

      Paste this into "postStep"
      Enjoy!😃⚙️
      (e)=>{
      Scene.addBox({
      timeToLive := 2;
      vel := [0.0, 0.0];
      killer := false;
      protractor := false;
      area := 0.19634955;
      collideSet := 2;
      drawBorder := true;
      friction := 0.5;
      entityID := 3341;
      color := [0.92548233, 0.29223198, 0.22644414, 1.0];
      drawCake := false;
      pos := pos;
      density := 2.0;
      airFrictionMult := 1.0;
      controllerAcc := 11.0;
      colorHSVA := [5.6467161, 0.75532311, 0.92548233, 1.0];
      size := [0.25, 0.25];
      angvel := 1.0;
      angle := 0.2;
      heteroCollide := false;
      postStep := (e)=>{};
      opaqueBorders := true;
      geomID := 3214;
      edgeBlur := 0.0;
      zDepth := 2.0;
      layer := 0
      })
      }

  • @navyhing940
    @navyhing940 4 года назад

    .me too

  • @jaxenmainu437
    @jaxenmainu437 2 года назад

    Err