hammer Posted January 31, 2014 Author Share Posted January 31, 2014 hi, any one knows how make the sprites look at mouse direction ever and change the attack to right click (like diablo games) sorry but am really bad at coding Link to comment Share on other sites More sharing options...
Sealbreaker Posted January 31, 2014 Share Posted January 31, 2014 Yeah, that would totally feel like diablo in a tile-based environment. Not.Also there is no 360° movement in any eclipse engine I know. -seal Link to comment Share on other sites More sharing options...
Joyce Posted January 31, 2014 Share Posted January 31, 2014 Wouldn't be too hard to change it to UP, DOWN, LEFT or RIGHT when the mouse is on any side. Movement is a bit trickier if you want it the fancy pathfinding way though. Link to comment Share on other sites More sharing options...
hammer Posted January 31, 2014 Author Share Posted January 31, 2014 what joyce say… i think wasd movement but face at mouse and atack on right click but dont atk if you are clickin at options invt...etc...sorry mi english. not native Link to comment Share on other sites More sharing options...
Slasheree Posted January 31, 2014 Share Posted January 31, 2014 for facing right for example, you'd put something in the gameLoop():If Player(Myindex).Dir <> DIR_RIGHT And ConvertMapX(MouseX) > Player(Myindex).x Then SetPlayerDir(DIR_RIGHT)Dunno if the code is completly right, and I don't remember if the SetPlayerDir function even exists… it's just an example of how i'd do it... Link to comment Share on other sites More sharing options...
hammer Posted January 31, 2014 Author Share Posted January 31, 2014 can work. and for a shooter morpg can be good. (more with 8 dirs) ;) Link to comment Share on other sites More sharing options...
SpiceyWolf Posted March 31, 2014 Share Posted March 31, 2014 Ive actually made an advanced path finding and movement system i could easily add something like direction facing on my engine, if your still in need pm me and ill set up a time period to help you implement one :) Link to comment Share on other sites More sharing options...
abhi2011 Posted March 31, 2014 Share Posted March 31, 2014 > Ive actually made an advanced path finding and movement system i could easily add something like direction facing on my engine, if your still in need pm me and ill set up a time period to help you implement one :)This post is nearly 2 months old. (Just one day :P) Check the date of the last post before posting. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now