I put together a small example here. There are basically two distinct paths for the logic: one for the “x” (left & right) axis, and one for “y” (up & down).
The logic works like this:
A Timer wakes up and triggers each second
There are two Extractor nodes, one extracts the “x” position of the player, the other extracts the “x” position of the enemy
An Expression nodes takes the difference of the two positions (A - B) and sends the result to a Filter
If the difference in position is greater than 0, the Velocity is set moving the enemy to the left, otherwise he moves to the right
The “y” axis works the same way, only comparing the “y” instead of “x” positions
in my temple explorer games i make enemies fallow you with a proximity connected to a point-at. It is also connected to a switch and turns it on, and a always is imputed to the switch, and the output is connected to a number (5) to a velocity (forward)
Help! Mine won’t work! And i copied down the behaviors exactly, I triple checked. I also made sure gravity is off and all of the physics of the enemy are matching to the example enemy. I have no clue why mine won’t work. Can you please help me asap! http://flowlab.io/game/view/154128
Sorry. I deleted the system but I will be attempting to add it back when i get to level three and if I have problems, again, I will message you. And thanks! Ive been working really hard on the game. Its for a community Minecraft Server’s website. But its difficult making with only limited blocks and levels. I would buy unlimited but I just dont have the money for something like this at the moment
Whenever I try making an Extractor extract From Selected Object and choose the player, it doesn’t register, and resets immediately after I click off it. Anyone know how to solve this issue?