Shenmue Posted April 2, 2020 Share Posted April 2, 2020 (edited) Diagonal Movement  Description: The players and NPCs can now have 8 direction movements.  Features: Players and NPCs diagonal movements Players and NPCs diagonal attacks Diagonal move routes Projectiles can move in diagonal (optional feature) Players can attack enemies they focus if they are in a 5 tiles range in front of them (optional feature) Spoiler The player still need to be somehow close to hit the target. The hitbox has 5 different values for each direction. Hitbox values if the player is facing right.  Note: Download links in the GitPatch section don't contain any known bug and are up to date with the latest fixes.  Media:  GitPatch: V1.191 Download basic mod  Basic mod need to be installed first Download easier attack on focus Download diagonal projectiles  Download zip file with all patches used (separated)  Based On: Version 0.6.2.421 (development branch)  Last official working commit with the patch ID: 1a8edc5d From: lodicolo Date: 2020-05-28 7:49:22 PM Message: fix 191: Bag access is done via cached value (#219) ... Spoiler To see the history of commits of your branch, right click on your current branch, then on history.   Setup: First of all, be sure to be on the latest official working commit with the patch. The branch must not have any modification or there may be conflicts with the mod.  You must download and apply the basic mod patch first. If you want more features like diagonal projectiles or easier attack when a player has a target, you can download and apply the patch files related to these. The zip file is not needed, but if you download the zip file, then you must apply all patches in order.  Be sure to build your project after installation.  How to apply a patch How to solve patch conflicts About diffy.org Edited July 25, 2020 by Shenmue Agoraphobic, Pixellife, Kamus and 14 others 17 Link to comment Share on other sites More sharing options...
Beefy Kasplant Posted April 2, 2020 Share Posted April 2, 2020 It's set to not working? Who tested it?  Does it work for NPC's? Any issues with projectiles? Can you skip through two diagonally placed blocks?   Once bug free and working, this will be a very popular addition! Really nice work! Ainz Ooal Gown 1 Link to comment Share on other sites More sharing options...
minisoft Posted April 2, 2020 Share Posted April 2, 2020 Would it be possible to add diagonal animations too? Link to comment Share on other sites More sharing options...
Aiden9 Posted April 2, 2020 Share Posted April 2, 2020 Nice work, hope you make it full work with projectile. Link to comment Share on other sites More sharing options...
Shenmue Posted April 2, 2020 Author Share Posted April 2, 2020 24 minutes ago, Beefy Kasplant said: It's set to not working? Who tested it? Actually it does work, but I am having struggle with the patch. It should be up soon.  15 minutes ago, minisoft said: Would it be possible to add diagonal animations too? I think I will work on this next, but in fact I don't know yet how to set a player animation.  16 minutes ago, Atsuya said: Nice work, hope you make it full work with projectile. Haha I hope it too Link to comment Share on other sites More sharing options...
Aiden9 Posted April 2, 2020 Share Posted April 2, 2020 2 minutes ago, Shenmue said: Actually it does work, but I am having struggle with the patch. It should be up soon.  I think I will work on this next, but in fact I don't know yet how to set a player animation.  Haha I hope it too  For the animation, i'm sure you don't have to modify the source, it ill work without change Link to comment Share on other sites More sharing options...
Shenmue Posted April 2, 2020 Author Share Posted April 2, 2020 2 minutes ago, Atsuya said:  For the animation, i'm sure you don't have to modify the source, it ill work without change  Where it is interesting is that if we find out how to modify the animation, we could use a spritesheet with more actions than just walking Link to comment Share on other sites More sharing options...
Aiden9 Posted April 2, 2020 Share Posted April 2, 2020 Just now, Shenmue said:  Where it is interesting is that if we find out how to modify the animation, we could use a spritesheet with more actions than just walking  Client side, i'm thinking the animation is define here : (sorry for bad english)  Intersect.client / Entities / Entity : Line 868 if (Options.AnimatedSprites.Contains(sprite.ToLower())) { srcRectangle = new FloatRect( AnimationFrame * (int) Texture.GetWidth() / 8, d * (int) Texture.GetHeight() / 4, (int) Texture.GetWidth() / 8, (int) Texture.GetHeight() / 4 ); }  Because more line further you also have the frame for attacking, for walk and then for the paperdoll Link to comment Share on other sites More sharing options...
Shenmue Posted April 2, 2020 Author Share Posted April 2, 2020 I see, I will check it out then. Thanks Link to comment Share on other sites More sharing options...
Guest Posted April 2, 2020 Share Posted April 2, 2020 Its Working? Link to comment Share on other sites More sharing options...
Beefy Kasplant Posted April 2, 2020 Share Posted April 2, 2020 5 minutes ago, Celtos said: Its Working? Â There's a big red NOT WORKING tag Link to comment Share on other sites More sharing options...
Shenmue Posted April 2, 2020 Author Share Posted April 2, 2020 36 minutes ago, Celtos said: Its Working? I've updated the post, patch is working now Link to comment Share on other sites More sharing options...
jcsnider Posted April 2, 2020 Share Posted April 2, 2020 1 minute ago, Shenmue said: I've updated the post, patch is working now Good job! Patch looks good. Marking as untested. Shenmue 1 Link to comment Share on other sites More sharing options...
Shenmue Posted April 2, 2020 Author Share Posted April 2, 2020 (edited) 23 minutes ago, jcsnider said: Good job! Patch looks good. Marking as untested. Haha thanks  2 hours ago, Beefy Kasplant said: Does it work for NPC's? Actually the NPC animation is not working right so I am working on that. Plus I will try to make the NPC move in diagonal too. And you cannot hit a NPC in a diagonal tile.   2 hours ago, Beefy Kasplant said: Can you skip through two diagonally placed blocks? Yes actually you can.     2 hours ago, Beefy Kasplant said: Any issues with projectiles? I've not tested yet, I will improve NPC first.  If anyone wants to improve my code feel free.    Edited April 2, 2020 by Shenmue Add more information Aiden9, Beefy Kasplant, gooby and 1 other 4 Link to comment Share on other sites More sharing options...
Guest Posted April 2, 2020 Share Posted April 2, 2020 Some errors Projectile does not follow the direction of the character Embedded Video Link Players teleporting, perhaps at events too. Embedded Video Link  Speed System, Because he is adding the vertical and horizontal speed, making the player even faster. Monsters Lags when moving Link to comment Share on other sites More sharing options...
Shenmue Posted April 2, 2020 Author Share Posted April 2, 2020 52 minutes ago, Celtos said: Some errors Projectile does not follow the direction of the character Players teleporting, perhaps at events too. Speed System, Because he is adding the vertical and horizontal speed, making the player even faster. Monsters Lags when moving  Thanks for the bugs report Celtos, I am currently working on NPC lags. After NPC I will focus on projectiles. It doesn't look to me like the player is going faster. Link to comment Share on other sites More sharing options...
Guest Posted April 2, 2020 Share Posted April 2, 2020 If possible, making the monsters walk in that system too, will get more fluid ... Let me know, your initiative is very good Link to comment Share on other sites More sharing options...
Kibbelz Posted April 3, 2020 Share Posted April 3, 2020 14 hours ago, Celtos said: If possible, making the monsters walk in that system too, will get more fluid ... Let me know, your initiative is very good If you will go down that route adding diagonal movement to events would be a good shout. Shenmue 1 Link to comment Share on other sites More sharing options...
Shenmue Posted April 3, 2020 Author Share Posted April 3, 2020 1 hour ago, Kibbelz said: If you will go down that route adding diagonal movement to events would be a good shout. I think I will test that feature when I will be done with NPC. I was also planning to expand the spritesheet, so I don't know if I will do this soon haha.  15 hours ago, Celtos said: If possible, making the monsters walk in that system too, will get more fluid ... Let me know, your initiative is very good Passive NPC move with 8 directions and there is no more lags with them. Only issue I've found: when they have a target they move with only 4 directions (I am still trying to change that).  There is no more projectile issues. However, projectiles are only 4 directions even if moving diagonal. I don't think I will change it, but if someone is interested about that feature maybe I will add it later.  I've updated my post, but you can download the most recent patch here.  Ainz Ooal Gown and Beefy Kasplant 2 Link to comment Share on other sites More sharing options...
Beefy Kasplant Posted April 3, 2020 Share Posted April 3, 2020  3 hours ago, Shenmue said: There is no more projectile issues. However, projectiles are only 4 directions even if moving diagonal. I don't think I will change it, but if someone is interested about that feature maybe I will add it later.   This would make the system complete, but I would focus on getting the current system fully working and bug free.  Nice work! Shenmue 1 Link to comment Share on other sites More sharing options...
Shenmue Posted April 3, 2020 Author Share Posted April 3, 2020 45 minutes ago, Beefy Kasplant said: This would make the system complete, but I would focus on getting the current system fully working and bug free. Â Nice work! Â Thanks, Paperdolls are working fine now patch link updated. Ainz Ooal Gown 1 Link to comment Share on other sites More sharing options...
Hyddan Posted April 3, 2020 Share Posted April 3, 2020 I'm new on Intersect. Sorry but, how do I install this source modification? Thank you. Link to comment Share on other sites More sharing options...
Cheshire Posted April 3, 2020 Share Posted April 3, 2020 2 minutes ago, Hyddan said: I'm new on Intersect. Sorry but, how do I install this source modification? Thank you. Â See the documentation provided at the following link:Â https://docs.freemmorpgmaker.com/dev/sharing/applying.html Hyddan 1 Link to comment Share on other sites More sharing options...
Hyddan Posted April 3, 2020 Share Posted April 3, 2020 1 minute ago, Joyce said:  See the documentation provided at the following link: https://docs.freemmorpgmaker.com/dev/sharing/applying.html Thank you! Link to comment Share on other sites More sharing options...
Shenmue Posted April 3, 2020 Author Share Posted April 3, 2020 Diagonal NPC movements work any time now. However they behave strangely when player is in diagonal of them. Should be fixed when I will configure diagonal attack.  Spoiler  Zetasis, Slayer, Zerinho and 2 others 5 Link to comment Share on other sites More sharing options...
Recommended Posts