Custom: 4 visual 8 vector movement

Post your own tutorials, guides and demos.

Post » Sat Jun 14, 2008 4:41 pm

I figured I'd share this because it took me quiet a few tries to accomplish. What this is, is a custom movement event sheet that has 4 visual directions (meaning the player only faces 4 directions) and 8 vector directions (meaning the player can move in 8 directions).

My biggest battle with all of this was I kept running into 2 errors. 1 part my fault for doing weird things with the player angles and when to play certain anims or not. The other part however is a construct bug that I bypassed using private variables.

Some of you may have run into this bug, some of you may not have. However the problem is that when you include an event sheet into another event sheet all the keyboard inputs that you put into the first event sheet do not work on the event sheet you included into.

Any who, I just figured I'd share this in case anyone else was looking into putting together a game that is like this and was having problems. Right now the code is uncommented but eventually I'll fix that when I have more done. If you have any questions/comments/things I could do better or more efficiently please let me know.
B
2
S
2
G
4
Posts: 136
Reputation: 1,722

Post » Mon Jul 14, 2008 3:50 pm

Best way for 4 way animation, but what if you want 8 way animation? I noticed that if you put in an event that checks if for example arrow up and left are pressed, it doesn't change the sprite unless you're standing still.
B
6
S
1
G
4
Posts: 66
Reputation: 1,532


Return to Your tutorials & example files

Who is online

Users browsing this forum: No registered users and 1 guest