Тёмный

Tutorial: Perform multiple attacks with the same input! (Godot 3.0.6) 

AntiDev, Godot Engine Tutorials & Analysis
Подписаться 2 тыс.
Просмотров 15 тыс.
50% 1

Опубликовано:

 

28 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 67   
@vaivs7903
@vaivs7903 3 месяца назад
Ah It's always a pleasure hearing the megaman 8 frostman stage theme
@McDADDyK
@McDADDyK 4 года назад
Pros: Conceise To the point Time line laid out so you can skip to what you want Cons: ---------- A perfect tutorial in all aspects, no time wasted and the only time you spent rambling still had purpose.
@antidevgodot
@antidevgodot 4 года назад
Thank you so much!
@5moon_EditZ
@5moon_EditZ 9 месяцев назад
i searched more resources in chrome and youtube since 1 week, finally i found this video , very thanks full to you, you are great
@terminatob
@terminatob 5 лет назад
Your tutorials are so hip man, keep 'em coming!!! Thanks.
@antidevgodot
@antidevgodot 5 лет назад
Thank you so much for stopping by! I hope you keep looking forward to my stuff :D
@KoeK_oe
@KoeK_oe 2 года назад
Here's how you fix the animation interrupts You will need animationtree or enum state machine(better with animationtree but i don't used it before so i will explain it with enum) You will need to make state "attack" in enum. Example: enum state {idle, Walk, jump, attack} and this for your attack code: if Input.is_action_just_pressed("Light attack") && player_state == state.attack: pass elif Input.is_action_just_pressed("Light attack"): $AnimationPlayer.play("attack 1") player_state = state.attack idle = false So if an attack animation is playing, another attack animation can't be played until current one is finished. Make sure to turn state.attack back to idle after attack animation finished playing. And for other animations like walk, jump, etc, you can do the same. Hope this helped
@Gabriela-bo6gd
@Gabriela-bo6gd 5 лет назад
I was waiting for more videos, yaaaas💖 Loving your video!🥰
@jessejburton
@jessejburton 3 года назад
Nice tutorial :) here is another way it could be done: var attacks = ['Saber1','Saber2','Saber3'] var currentAttack = 0 func _process(delta): if Input.is_action_just_pressed(x): $AttackReset.start() $ZeroSprite.play(attacks[currentAttack]) currentAttack ++ if currentAttack > attacks.length: currentAttack = 0 movement = move_and_slide(movement, up) func _on_AttackReset_timeout(): currentAttack = 0
@Jeansou21
@Jeansou21 2 года назад
you tested it?? very interesting! if currentAttack > attacks.length: currentAttack = 0 what that means?
@jessejburton
@jessejburton 2 года назад
​@@Jeansou21 Yep! I tested it out :) worked great! That line basically means, if the currentAttack number is bigger then the number of attacks in the attacks array.
@ramirotravieso1618
@ramirotravieso1618 3 года назад
Just what I was looking for! Thank you very much, sir!💪🏻
@personalnote
@personalnote 2 года назад
Even when I'm in Godot 3.4.3 the code works well and helped me a lot. Thanks, man! Appreciate it!
@SmashtoonGamer
@SmashtoonGamer 10 месяцев назад
Exactly what I needed, ty!
@antidevgodot
@antidevgodot 5 лет назад
You can skip the intro by fast-forwarding to 0:52 If you only want the code, go to 2:00 or 15:15 for the in-tutorial version. If you want to skip to the "theory part" of the tutorial, go to 2:38 If you only want to know how to "Slap-it-into-Godot!" go to 4:20 Hope you like this video or find it useful.
@artursouto8525
@artursouto8525 4 года назад
Awesone! Hey, how did you align the sprites?
@antidevgodot
@antidevgodot 4 года назад
Thanks! I alligned them manually with Piskel. (Free to download) a bit of a tedious process, but it works. :)
@artursouto8525
@artursouto8525 4 года назад
@@antidevgodot Got it! Love your videos, keep the great work!
@antidevgodot
@antidevgodot 4 года назад
Artur Souto Thank you, I really appreciate it!!! Good luck in your Game Development journey!
@simonlow0210
@simonlow0210 4 года назад
I have been searching for this!!!
@antidevgodot
@antidevgodot 4 года назад
Hope it helped!!!
@shecklesmack9563
@shecklesmack9563 3 года назад
Is there a way to make it wait until the animation has finished? I'd like each slash to start and stop before moving onto the next, as is you can just rapidly press the attack button and it skips through each animation.
@turbotegs2102
@turbotegs2102 3 года назад
I was wondering about the same thing. Also I can cancel my animations by pressing right, left or jump which is also annoying
@shecklesmack9563
@shecklesmack9563 3 года назад
@@turbotegs2102 Well, I found a solution. State machines.
@stuartdriedger9989
@stuartdriedger9989 4 года назад
yes man yes
@Plagueheart
@Plagueheart 4 года назад
What about implementing a timer, after so long with idle input you can't continue with the timers? Every attack action pressed adds to the timer by a fraction of a second so it does't fall off so quickly?
@antidevgodot
@antidevgodot 4 года назад
Voidheart Sure! I think that could be implemented. Have you tried it? :)
@arielgimenez_95
@arielgimenez_95 5 лет назад
excelent
@antidevgodot
@antidevgodot 5 лет назад
Muchas gracias Ariel. Me he checado algunos vídeos tuyos en el pasado :D
@seagan2907
@seagan2907 2 года назад
Thanks bro...😁👍
@SUPREMOFERAH
@SUPREMOFERAH Год назад
Cara, muito bom, melhor tutorial sobre combo, muito obrigado!!!
@shenzai
@shenzai 5 лет назад
Nice! Can you make X's buster shots?
@antidevgodot
@antidevgodot 5 лет назад
That's actually a pretty good idea. I'll start working on it today!
@shenzai
@shenzai 5 лет назад
@@antidevgodot Thank you!
@longshorts5154
@longshorts5154 2 года назад
cnt figure out how to use this in conjunction with a statemachine
@drac8854
@drac8854 3 года назад
Hi thanks for making this I am gonna use this in 3d with animationtree lets see how things turn out
@jesustzinon
@jesustzinon 5 лет назад
Hola , recien encuentro tu canal! estaba buscando tutoriales asi desde hace un tiempo, lo que no he podido encontrar es un tutorial en godot para poder hacer que el player en cuestion pueda esquivar ataques enemigos o el tipico parry de los soul's like o hack and slash , me gustaria ver en un futuro una implementacion con estas ideas en godot! Saludos , me suscribo :v
@antidevgodot
@antidevgodot 5 лет назад
Muchas gracias por suscribirte :D Hmmm. Hace mucho que no tiempo ningún souls. Lo último que jugué fue Demon Souls. Pero con decir "parry" me imagino algo como Street Fighter Third Strike. ¿Tienes algún vídeo de referencia?
@jesustzinon
@jesustzinon 5 лет назад
@@antidevgodot Si! algo parecido a la famosa jugada del Daigo Parry en el Evo 2004, o algun tipo de mecanica de evadir y esquivar pero enfocado al 2d, un ejemplo en 3d podria ser las mecanicas del Godhand de ps2 ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-hgzYBNGEXdM.html ! :D
@antidevgodot
@antidevgodot 5 лет назад
@@jesustzinon Creo que ya pensé en una forma en la cual podrían implementarse las mecánicas. Más que todo el parry, el parry suena fácil. Sin embargo, a pesar de que programar mecánicas de esquivar suena relativamente fácil, hay que hacer animaciones muy acordes a lo que se está haciendo en pantalla. Por lo que tendría que buscar algún personaje con sprites de esquivar. (Aunque puedo pensar en algo como el "dodge" de Videl en Dragon Ball Fighterz) ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-FP3KXdImI3M.html o en el dodge de Smash. (A pesar de que sean juegos 3D emulando una vista 2D)
@gonzitarod2885
@gonzitarod2885 4 года назад
@@antidevgodot Gente que habla español??Al fin, gracias x tus tutoriales
@plaguenano9661
@plaguenano9661 4 года назад
Why cant i set my animatedsprite to $AnimatedSprite.play? Did they change the name of the command that is used to play the animated sprite? Edit: Nevermind im stupid and forgot to add the kinematicbody2d :p Thank you very much for this
@IustinNitza
@IustinNitza 4 года назад
Thank you very much
@jwerlley
@jwerlley 4 года назад
awesomeeee!!!!
@antidevgodot
@antidevgodot 4 года назад
Jonhnny Werlley Thank you so much!
@Dev_Crafted
@Dev_Crafted 3 года назад
Pls where can I get this asset
@SonplaysMinEcraft
@SonplaysMinEcraft 4 года назад
i'm gonna use this but for a megman zx game
@gonzitarod2885
@gonzitarod2885 4 года назад
Muy buen tutorial amigo! Te mando un saludo
@marvintleave4
@marvintleave4 2 года назад
Hi I was wondering if you still work in Godot?
@TheRealKaiProton
@TheRealKaiProton 2 года назад
Great base, but still alot of code, I would move the Anim names into an array, then the attackpoints be array.size()-1 and start at 0, then each press calls the anim by array number, then the array number +=1, for the return, have each attack press, set a bool to True, then in the anim end signal, if bool == true then set back to idle, this would also allow for the timer to be plugged in,
@turbotegs2102
@turbotegs2102 3 года назад
Is there a way to make sure the animation finishes playing before you can play the next one?
@3nkidu465
@3nkidu465 3 года назад
Do you keep interrupting one attack animation after another before it finish?
@josejes1
@josejes1 4 года назад
buen tutorial compadre
@antidevgodot
@antidevgodot 4 года назад
Grasiah don joseh
@shenzai
@shenzai 5 лет назад
How can I make jump-slash?
@antidevgodot
@antidevgodot 5 лет назад
Hi! As part of a combo, or just as an standalone attack?
@shenzai
@shenzai 5 лет назад
@@antidevgodot I don't know but I have fall animation code.
@antidevgodot
@antidevgodot 5 лет назад
@@shenzai do you use Godot 3.0.6 or 3.1?🤔
@shenzai
@shenzai 5 лет назад
@@antidevgodot 3.1
@antidevgodot
@antidevgodot 5 лет назад
@@shenzai Well, since you have a falling line of code, that could interfere with the jumpslash animation. (Happened to me before) The cool thing of Godot 3.1 is the finite state machine, that gives you a better idea of the animations that are playing.
@toc1591
@toc1591 2 года назад
I managed to make it work using AnimationPlayer, I also made a match state enum. Thank you.
@BrickGalaxy
@BrickGalaxy 4 года назад
about 6 videos and 400 subs already. wow
@antidevgodot
@antidevgodot 4 года назад
Hahahah well, to be honest the community from r/Godot is really friendly and hungry for tutorials! They helped me a lot to gain subs. Sadly I moved to Germany some days ago, and haven't been able to use my computer. I have a lot of videos planned for later, though! Thanks for stopping by ;D
@3nkidu465
@3nkidu465 3 года назад
@@antidevgodot such videos never come :(
Далее
1 Year of Developing My Game in Godot
19:19
Просмотров 333 тыс.
Voy shetga man aralashay | Million jamoasi
00:56
Просмотров 161 тыс.
Ванька пошел!!!! 🥰
00:18
Просмотров 1,1 млн
a Technical Dive into AFTERIMAGES
6:43
Просмотров 1,8 тыс.
Why did Quake (and arena shooters) die?
26:23
Просмотров 424 тыс.
Why Do LED Bulbs Fail? An Autopsy!
16:57
Просмотров 95 тыс.
4 Months of Game Programming With My Own Engine
21:30
Просмотров 487 тыс.
Weapon Switching In Godot - FPS Tutorial
14:41
Просмотров 34 тыс.
The Strange Graphics Of LETHAL COMPANY
15:59
Просмотров 906 тыс.
These awesome 3D games are made in Godot
5:40
Просмотров 147 тыс.
Exposing BIAS in Game Review Scores
19:25
Просмотров 1,7 млн
I Used Godot For 100 Hours, Here’s What I Learned
35:09