![]() |
Custom movement issue.
I have made a simple custom movement system. The movement is a 'arcade' type movement. You can move in all four directions, but the player can only be seen from a side view.
A issue I am having is that I am not sure how to make it so the player can run diangle also. (Ex-Move up and right at the same time) And if someone could throw in a line of tile detection that'd be great! :D PHP Code:
|
get rid of your else statements.
Have it so it's like this PHP Code:
PHP Code:
|
Thanks! But I don't mean write the onWall for me. I just need an idea what it looks like
|
I gave you an idea, if you don't understand even that just say so and I'm sure either me someone else will break it all down for you.
You might also want to take a look at this guide made by dusty which elaborates quite well on all the things you need to know. |
| All times are GMT +2. The time now is 08:26 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.