I’ll try to break it down as straightforwardly as possible. As Marbler explained, most enemies in Super Mario 64 has a certain amount of logic programmed into it to avoid walking off ledges.
You can see Mario Builder 64 in action in the video below, showing off the simple tools and huge amount of scenery, enemies and items that can be used to create levels. There are even elements and ...