vulcano Posted May 23, 2013 Author Share Posted May 23, 2013 Can I put this tutorial: http://www.touchofdeathforums.com/community/index.php?/topic/129417-8-directional-movement/In ETFF?Thanks ! Link to comment Share on other sites More sharing options...
Zeno Posted May 23, 2013 Share Posted May 23, 2013 Yes and no. Most of the code is compatible, but some parts (such as the DX7 graphics) are not. I wouldn't recommend using this tutorial in EFF. Link to comment Share on other sites More sharing options...
vulcano Posted May 23, 2013 Author Share Posted May 23, 2013 Ok, thanksSo, if the tutorial is for DX8 or EO 3.0, I can use it? Link to comment Share on other sites More sharing options...
Growlith1223 Posted May 24, 2013 Share Posted May 24, 2013 8-Directional movement by no means relates to DX8 or DX7\. it only uses background logic which only moves the sprite lol. you can use it regardless Link to comment Share on other sites More sharing options...
Zeno Posted May 24, 2013 Share Posted May 24, 2013 > 8-Directional movement by no means relates to DX8 or DX7\. it only uses background logic which only moves the sprite lol. you can use it regardlessThat background logic is implemented in mod DirectDraw's subs (aka Direct7 graphics). You can't use it regardless - only if you change in which subs you put it, using draw instead of blt. Trivial, but also misleading to someone who's new to coding an engine.That is, you can use it to move your player. Completely ignoring how it will look because you haven't bothered to edit any graphics and your character will face either up or down when going diagonally, it'll work. Link to comment Share on other sites More sharing options...
vulcano Posted May 24, 2013 Author Share Posted May 24, 2013 So, the tutorial will work?And if the tutorial is for DX8 or EO 3.0, I can use it in EFF? Link to comment Share on other sites More sharing options...
Zeno Posted May 24, 2013 Share Posted May 24, 2013 Yes and no. The code itself will work. Where to put the code will not work. For example, instead of sub bltPlayer (the dx7 sub), use sub DrawPlayer (the dx8 sub).Yes, DX8 or EO3.0 tutorials should work for EFF. Link to comment Share on other sites More sharing options...
vulcano Posted May 24, 2013 Author Share Posted May 24, 2013 And if I change bltPlayer for DrawPlayer the tutorial will work?Or are there other parts that I should change? Link to comment Share on other sites More sharing options...
Zeno Posted May 24, 2013 Share Posted May 24, 2013 For anything in mod DirectDraw you'll need to find the similar subs in mod Graphics. The code in question here should be the same, only the name of the subs would be different.bltnpc -> DrawNPCbltPlayer -> DrawPlayer Link to comment Share on other sites More sharing options...
vulcano Posted May 26, 2013 Author Share Posted May 26, 2013 > For anything in mod DirectDraw you'll need to find the similar subs in mod Graphics. The code in question here should be the same, only the name of the subs would be different.> > bltnpc -> DrawNPC> > bltPlayer -> DrawPlayerThe code works, butI cant use W A S D keys to moveHow to fix this? Link to comment Share on other sites More sharing options...
blkcrow Posted May 26, 2013 Share Posted May 26, 2013 In modInput replace everywhereVK_UP with VK_WVK_DOWN with VK_SVK_RIGHT with VK_DandVK_LEFT with VK_A 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