ALGODOO SCRIPT ON COLLIDE SPAWN CRAZY MARBLES

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ม.ค. 2025

ความคิดเห็น • 56

  • @unluckypanda5448
    @unluckypanda5448 3 ปีที่แล้ว +3

    so underrated! the attention to music is incredible :0

  • @happyentertainment8003
    @happyentertainment8003 3 ปีที่แล้ว +2

    dang darn this opens so many possibilities

  • @CookieRacer
    @CookieRacer 3 ปีที่แล้ว +2

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

  • @TW-qq6fi
    @TW-qq6fi 3 ปีที่แล้ว +1

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

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

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

  • @Lesiu_u
    @Lesiu_u 4 ปีที่แล้ว +2

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

    • @algodooscenecollection3048
      @algodooscenecollection3048  4 ปีที่แล้ว +4

      Hi!
      1) Copy the object
      2) Open the menu of the other object
      3) open the script menu
      4) paste the brackets {...} into the onCollide box.

    • @Lesiu_u
      @Lesiu_u 4 ปีที่แล้ว +1

      @@algodooscenecollection3048 Thanks dude!

    • @algodooscenecollection3048
      @algodooscenecollection3048  4 ปีที่แล้ว +1

      You are welcome!

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

    • @algodooscenecollection3048
      @algodooscenecollection3048  4 ปีที่แล้ว +3

      Hi!
      Try this scene, it should be fine!
      mega.nz/file/7MwRHLBT#W-_yPd7RKPFdjO4ZAXRWCeReg7qLljWwHIeef5rL3O4

    • @bpassosdev
      @bpassosdev 4 ปีที่แล้ว +1

      @@algodooscenecollection3048 Thanks a lot my friend

    • @algodooscenecollection3048
      @algodooscenecollection3048  4 ปีที่แล้ว +2

      You are welcome!!

  • @samvidhkumar7014
    @samvidhkumar7014 4 ปีที่แล้ว +2

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

  • @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  3 ปีที่แล้ว

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

    • @happyentertainment8003
      @happyentertainment8003 3 ปีที่แล้ว +1

      I will too :)

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

  • @critixil
    @critixil 2 ปีที่แล้ว

    How ctrl + c ctrl + v the object?

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

  • @JustinBartholomew-gm1dy
    @JustinBartholomew-gm1dy 7 หลายเดือนก่อน

    How to copy

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

    • @i_moved_channels_this_is_old
      @i_moved_channels_this_is_old 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 4 หลายเดือนก่อน

      @@algodooscenecollection3048I wasted all my time thanks alout

  • @serbiatheserb
    @serbiatheserb หลายเดือนก่อน

    can you do on collide die

  • @alvinplay8939
    @alvinplay8939 ปีที่แล้ว

    How do you copy an object to script menu

  • @LeKhang98
    @LeKhang98 3 ปีที่แล้ว +1

    very helpful thank you very much

  • @ninja_strong364
    @ninja_strong364 3 ปีที่แล้ว +1

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

  • @smartalex1697
    @smartalex1697 2 ปีที่แล้ว +1

    But I still have to type the scripts!

  • @china5322
    @china5322 4 ปีที่แล้ว +2

    Canale Italiano ?

  • @Kenlimepie
    @Kenlimepie 5 ปีที่แล้ว

    Yes.

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

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

  • @spaceguy20_12
    @spaceguy20_12 5 หลายเดือนก่อน

    that intro hurt my ears

  • @jaxenmainu437
    @jaxenmainu437 2 ปีที่แล้ว

    Err