I’m making a game kind of based off of dingus on Roblox, I cant get the link right now but the game is called dummy. I am trying to make npcs randomly move and sometimes go to a specific point.
You need to set up the moving code for it first, then use Random behavior that looks like a dice and set it 1-2, if 1, go left/right, if 2, do the same but opposite way. In case your game is top-down, set Random behavior 1-4 and add if 3, go up/down and 4 do the opposite way to 3.
For example: I set up a move bundle, then I add Random behavior and set it 1-4 because my game is top-down, I wire the output of Random behavior to input set and input get to Number behavior. I add some more Filter behaviors, each will be “equal to 1”, “equal to 2”, “equal to 3” and “equal to 4”. Then, I wire each Filter to a different line of behavior to move up-down-left-right. Its base should look like this:
could you send the source code for it, if you mind?
I’m a bit busy, sr.
ok, send it when you can!