Return to site

How to make undertale sprites

broken image
broken image

Your player's sprite mapped to the right key animates. you press the right key and your player starts moving right. IE: You boot up Undertale and your player loads. If you press another key that would make your character move diagonally, the sprite from the first key press stays the same. In Undertale the first key you press displays the sprite connected to that key. I would like my player to be able to move like frisk in Undertale. If you press the down or up key followed by the left or right arrow key, the sprite will not change to the right or left sprite, but stay on the up or down sprite. If you continue holding the right arrow key(or left) and press the down or up arrow key my player's sprite changes to his up or down sprite. My issue is that if you press the right arrow key (or left) my player goes right (or left). This pattern for input continues through the three other arrow keys. I am using a very simple system to move in my player's step event. I was recently playing around with objects and getting a character to simply move when I came across an issue. I am fairly new to GameMaker, so if you wouldn't mind simplifying things, that would be awesome! Please let me know if I need to explain this better.