roko68 Posted October 16, 2014 Share Posted October 16, 2014 Just started playing with Phaser and am trying to figure out how to randomly generate a group of enemies, and have them follow a "player". I've seen something close here:http://gamemechanicexplorer.com/#follow-2However, I'd like the enemies to not follow in a line. I'm looking for something closer to Robotron: Any thoughts or ideally code examples? Help a NOOB?Thanks! Link to comment Share on other sites More sharing options...
lewster32 Posted October 17, 2014 Share Posted October 17, 2014 The same site has other examples of homing and flocking which may be more suitable: http://gamemechanicexplorer.com/#homingmissiles-6 At the most basic though, you could just something like this example (which is very similar to the way it works in Robotron): http://examples.phaser.io/_site/view_full.html?d=arcade%20physics&f=move+towards+object.js&t=move%20towards%20object Link to comment Share on other sites More sharing options...
roko68 Posted October 20, 2014 Author Share Posted October 20, 2014 Oh, I looked right past that flocking example! Thanks I'll give this a try! Link to comment Share on other sites More sharing options...
Recommended Posts