Przejdź do głównej zawartości

Szukaj

Better And Complex Logic

  • TAPgiles
    Great answers

    (A tip for next time... don't put everything on one line; it's hard to read a huge block of text ;P)

    1. The beauty of Dreams is, we can make stuff look however we want. Here's how to make a visual laser beam based on a laser scope. :D https://youtu.be/NgJomScQMV8

    2. Output "tag"? I don't know what that means. Could you explain it further?

    3. That would be pretty useful.

    Right now, you can use other solutions like emitting or moving an object to the hit position. The object has a trigger zone which looks for the thing being hit. The thing being hit knows it's being detected, so it knows it's being hit by that trigger zone. A little faffy of a workaround, but it works. Another method is to use a long thin trigger zone that aims at the hit position, which does the same kind of thing. This tutorial shows how to use those principles, if you're interested in learning more... https://youtu.be/L-OAk0M1uMU

    4. Sounds like you could use a single receiver in the object, which is scene-wide. And a single transmitter to receive that data. (Receivers and transmitters can communicate with each other, both ways.)

  • Crash_Royale_Yt

     

    1) thank you! i really needed this!

    2) with output "tag" i mean, it outputs the name of the object selected... or the tag that it has. lets imagine that i want to make a cube turn red when the lazer hits a wall but when it hits the floor it turns blue.

     

    "if it i hit something and it is X i would do Z"

    i cannot differenciate between those two unless i connect everything (wich isnt viable in a big proyect)

     

    but maybe there is a solution im not seeing, idk. 

     

    ive been trying to make some sort of pixel screen, but it may be impossible to differenciate between two or more colors

     

    3) i know the existance of this workaround, but it gets laggy when you have more than 10 objects spawning cubes with logic. but thanks for the advicd, ill still look at the video tho.

     

    4) yes, but lets say that im dealing with more than one object. and i want one universal input for all different combinations instead of hardcoding everything. i cant do it currently. but thanks for the responses!

  • TAPgiles
    Great answers

    2) Ah, so you mean the label? A tag is just a point in space; a label can be on an entire object which the laser can hit. That would make sense. Only way of doing that right now is to have as many laser scopes as you have different labels you want to check for, all looking at the same thing. So it's doable, just a little messy.

  • Skn3--

    Whole heartedly agree with all of your suggestions.

    Especially a better way to "read" info about detected objects.

Zaloguj się, aby dodać komentarz.