Discuss Scratch

Lilith155
New to Scratch
3 posts

Jump attack

I use tynker instead of scratch, but I hear they are the same, just different look and community.
I have an up, left and right attack. But for my down attack I want my actor to be jumping/in the air while doing it. Anyone got any ideas how to ONLY make him attack while in the air?
I'm basically trying to have the same controls as “Hollow Knight”, maybe that example can help.
PrincessFlowerTV
Scratcher
1000+ posts

Jump attack

I've tried tinker, and they have pre-made animations for jumping and attacking, right?

@PrincessFlowerTV
~~ Forum helper ~~ Wiki editor ~~ Teen ~~ Cindy- chatbot ~~ Classic Game Arcade

Psst…
Most of the text is clickable
asivi
Scratcher
1000+ posts

Jump attack

You allow the jump thing for a specific range of costume numbers.
Lilith155
New to Scratch
3 posts

Jump attack

Sorry for late reply, but now there's a new problem, if I do use the costume setup, I either don't jump as long as I still hold the move button. Or if I add a timer to when I can jump it will end mid air if there is a pit, so It does the jump code again.

Maybe I didn't do it correctly, or I have to change my jump code. I just use impulse at 0 degrees to jump (don't know if that's also a block here) so if used twice, my character slams to the ground and jumps again.
Lilith155
New to Scratch
3 posts

Jump attack

PrincessFlowerTV wrote:

I've tried tinker, and they have pre-made animations for jumping and attacking, right?


Yes, but if you want to learn about how they do it, there's no real code, it's just a bunch of blocks(that you can't find anywhere else and have to use the backpack to have them) like “jump” and “attack”, which means there is no way to modify them, and if you try to use them on your own project they don't work.
My guess is that they were the original setup and were later scrapped for the same codding as scratch or was used as a way to give you an idea of how codding works, although it would be nice to make your own block that carries out all those functions by its self so it doesn't take up as much space.

A lot of these blocks are still in their tutorials and it's frustrating knowing that information is useless and your on your own. At least some their tutorials are up to date with the new coding, but it's for the basics.

Powered by DjangoBB

Standard | Mobile