Filipe Santos Posted November 16, 2010 Report Share Posted November 16, 2010 I am making a game with MMF2, this game needs to have te homing attack but i dont know how to make it! Please help me! Link to comment Share on other sites More sharing options...
Scarletdark Posted November 16, 2010 Report Share Posted November 16, 2010 Welcome to sfghq! As you are rather new (and I myself made the same question when I arived here) I will give you some advice. If we are to help you with your request we must first know what engine you are using and what program you are using to create your game. Link to comment Share on other sites More sharing options...
USC Posted November 17, 2010 Report Share Posted November 17, 2010 There are some tutorials on the main site, but here's a basic idea you can build off of... -------------- Okay, first check to see if the jump button has been pressed again once Sonic's in the air (assuming this is how you want the homing attack to be activated). Now, check to see if there are any enemies within a certain range around Sonic (Say, a X position of +/- 80 from Sonic's current position, and a Y position of +/- 40). **If they are, set a flag ON. While this flag is on, add/subtract from Sonic's X & Y position until it equals the enemy's coordinates, then set the flag OFF. **If there aren't any enemies, just make Sonic's X velocity a little higher in the direction he's facing. ------------- Hope that's of some help to you. Link to comment Share on other sites More sharing options...
Filipe Santos Posted November 18, 2010 Author Report Share Posted November 18, 2010 There are some tutorials on the main site, but here's a basic idea you can build off of...-------------- Okay, first check to see if the jump button has been pressed again once Sonic's in the air (assuming this is how you want the homing attack to be activated). Now, check to see if there are any enemies within a certain range around Sonic (Say, a X position of +/- 80 from Sonic's current position, and a Y position of +/- 40). **If they are, set a flag ON. While this flag is on, add/subtract from Sonic's X & Y position until it equals the enemy's coordinates, then set the flag OFF. **If there aren't any enemies, just make Sonic's X velocity a little higher in the direction he's facing. ------------- Hope that's of some help to you. I do not understand this and the tutorial of the site are not working for me! Link to comment Share on other sites More sharing options...
luksamuk Posted November 21, 2010 Report Share Posted November 21, 2010 @Filipe Santos You will have to try to make it to understand. Are you brazilian? If you are, I can tell you what to do at MSN... on Portuguese. Just send me a Private Message if you want me to explain that. Link to comment Share on other sites More sharing options...
Recommended Posts