Sealbreaker Posted August 4, 2010 Author Share Posted August 4, 2010 I need to know how to allow moving in 2 directions at the same time…. for example: up and left at the same time or down and right... Hope someone's here who can help me at that point-seal Link to comment Share on other sites More sharing options...
Drummerpete Posted August 5, 2010 Share Posted August 5, 2010 I'm not sure exactly how to code it, but I do know you'd need to add in extra sprite frames and probably re-write the movement code?I'm sure someone had 8-way movement somewhere…Edit:http://www.touchofdeathforums.com/smf/index.php/topic,45889.0.html Link to comment Share on other sites More sharing options...
shadowwulf Posted August 5, 2010 Share Posted August 5, 2010 Maybe this can help you (assuming you can source).If direction is pressed-check for adjacent direction.-If only one is pressed–move that direction-Else we do the following--Check a playerrec variable--If 0 move on X axis and change to 1--Else move on Y axis and change to 0Maybe? 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