We look at a special kind of movement in this video - where our character has to be able to move in any direction. It's really useful for car games, and top down games.
Пікірлер: 13
@RaqiiCat2 жыл бұрын
This helped a lot, but I was wondering if you could teach us more top down stencyl tutorials as I want to create a few top down pixel games and this was the only tutorial I found that was on top down, I am unsure if the other tutorials could also apply to top down
@Hamentsios105 жыл бұрын
That's great tutorial, however, what about top down 8 direction movement? Like Up-Right-Left-Down-UpRight-UpLeft-DownRight-DownLeft? I only managed to do the 4 ways direction based on your crockodile tutorial.
@sashax28453 жыл бұрын
You're making me happy!
@upsideduck9165 Жыл бұрын
how do i make where the car cant turn if the character isnt moving?
@vitalija87785 жыл бұрын
Very helpful, thank you very much!!
@Kolegate3 жыл бұрын
Would it be the same blocks for enemies that's not controlled by the player?
@techismad3 жыл бұрын
Enemy movement is easy to understand, as long as you know why your enemy is moving. So if it's repeated movement, you need to program left / right or up / down movements. You can do this with time, so after a time the enemy will move left, and then after a time it will move right. Or you can do it by position, so IF x of enemy > (some number) Change Direction.
@alexandermoisesbulejequisp54124 жыл бұрын
hi man, nice vide. How can i change or modify actor's velocity? . Please i really need how to do that.
@techismad4 жыл бұрын
Do you mean you wan the actor to go faster in the game?
@alexandermoisesbulejequisp54124 жыл бұрын
@@techismad exactly but i wanna do that pressing a key
@techismad4 жыл бұрын
@@alexandermoisesbulejequisp5412 This should be quite easy if we think about it correctly. If you watch from about 3:00, you'll see that we talk about using the UP and DOWN key to change the velocity. How we do that is to simply do the "SET VEL TO |VEL| - 2" block. So when you press UP, we -2 to VEL. Remember that VEL is set to 0 when we start the game. Now, if you want to press a button to make the car go even faster, you can simply put in another IF block, and then choose the key you want to press for the boost speed, and then use the same thing we did for the UP key, where you you put a "SET VEL TO |VEL| - X". X would be a number like 1. So, if I understand what you might be doing, you would press up to move the car, and then WHILE you are pressing UP, you press another key and go faster. Does that make sense?
@alexandermoisesbulejequisp54124 жыл бұрын
@@techismad Yes I should pay attention to the video better , thank you.
@techismad4 жыл бұрын
@@alexandermoisesbulejequisp5412 - No problem my friend, it's my honour to help out a fellow game maker! And don't be too hard on yourself - I spend a long time making these videos so I get to make my mistakes first and then when I film it looks like I know how to do everything without even thinking about it! Let me know about the progress of your game ok?