Hey Buildbox community, Has anyone figured out a way to make an enemy go towards the player? I'm sure this would take some coding, so if anyone has created the node and would like to share it with the community I'm sure it would be appreciated.
I can create a node for this. Probably not a whole lot different than unity (other than the scripting language). The methods should be about the same. Let me know if its resolved before i get done
Does this node still work in 3.2? Ive tried using it and can't get it to work. Wouldn't be surprised if its user error though.
I havent tested in in the latest version, but I will and I will make the necessary changes if need be. Thank you for the update.
It should be an asset as itself. You would set the entity to follow your character from within the node editor. You can always change the 3d model of the asset to whatever you want as well. Make sure if you cahnge it though, you adjust the collision shapes as well.
Their is a node in bb called rotate towards. In your enemy add a timer and set it to 0.1 for time and connect it to the rotate towards node. Click on the rotate towards node and select which asset you want it to follow (if you use a move node make sure to set it to follow rotation) The rotate towards node is nice because it allows you to change how fast the enemy will rotate towards the character.
Give me some time on this it may be a version compatibility issue. Waiting on a new pc so I can get started again.
okay no problem, currently i am using advanced move and then made 2 copies of the enemy and flipped them and inverted the x directions and crashing the enemy into the wall, but stuck with awake node as the enemy moves before the character enters the scene
Has anyone had any issue when using in 2D? The image keeps flipping over when moving left or right, turning off Follow rotation stopes the node from working, it just goes off to the side.