<b>Question:</b> I'm making a Zelda game. I know how to do everything except two things.
1. I want Link to make a walking motion and move. I tried to do this, but Link was making a walking motion faster then he was moving.
EDIT: Now it's just not working. How do I make my character make a moving motion and move when you use the arrow keys. When you release the arrow keys, I want all motion to stop. Please help!
2. I want to make the rooms so that when you go outside a room, you go into anoother room. But, there's more. I want it so that if you go outside the room from the top, Link will go to a different room than if he went out the bottom. Does anyone understand this?
<b>Answer: </b>
Yeah, in the first case you'd simply have to find a working formula to describe the relation between the animation speed and the motion. So, for an example: image_speed = speed/max_speed where max_speed is the maximum speed the character will ever reach.
The second question; in the outside room event (which I suppose you have used) you need to check where the character is. For an example:
if (x<0) {
//The player went out left of the screen
room_goto_room(left_room);
}
etc.
.
Users logged in:
Comments
Loading comments...