[4.1.5 and up] How do I make an enemy constantly move toward the player?

Post Reply
User avatar
FormulaFanboy
Posts: 85
Joined: Fri Jul 26, 2019 6:53 pm
Contact:

[4.1.5 and up] How do I make an enemy constantly move toward the player?

Post by FormulaFanboy » Mon Jun 29, 2020 5:46 am

Fairly self explanatory. I'd like an enemy to just constantly come at the player in the adventure module. Thanks in advance!
Be sure to check out my games! :D
Battery Chad: Shock the World (https://gamejolt.com/games/chad/431122)
Battery Chad Builder (https://gamejolt.com/games/batterybuilder/440230)
Battery Chad: Topdown Turmoil (Coming soon!)
User avatar
Bucket Mouse
Posts: 398
Joined: Wed Mar 07, 2018 2:25 am

Re: [4.1.5 and up] How do I make an enemy constantly move toward the player?

Post by Bucket Mouse » Mon Jun 29, 2020 6:54 am

There's a script in Game/AIScripts called "Move Towards Player." It's meant for enemy projectiles, but I bet with a little work it could be adapted to monster movement.
User avatar
dale_coop
Posts: 5386
Joined: Fri Feb 16, 2018 7:05 am
Location: France

Re: [4.1.5 and up] How do I make an enemy constantly move toward the player?

Post by dale_coop » Mon Jun 29, 2020 7:18 am

Yeah, Bucket Mouse, wrote a topic about that, some (long) time ago ;)
viewtopic.php?f=3&t=746
-----
Sorry about my poor english
All I need: A Damn Fine Cup of Coffee
My games: PRESS START GAME / UNDERGROUND ADVENTURE / UNDERGROUND ADVENTURE (Arcade version - Byte-Off-2019)
My son's game: KUBO 3
Post Reply