Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

8 Directional Movement


vulcano
 Share

Recommended Posts

> 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

That 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

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

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 -> DrawPlayer
Link to comment
Share on other sites

> 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 -> DrawPlayer

The code works, but

I cant use W A S D keys to move

How to fix this?
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...