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

Mouse look and attack (request)


hammer
 Share

Recommended Posts

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

  • 1 month later...
> 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

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