Physics Tutorial(Box2D) || TurboWarp/Scratch.
Вставка
- Опубліковано 23 сер 2024
- First Episode of the Scratch Tutorial Series
I hope you enjoy, this is my first tutorial and it is kinda going to be low quality, but thankfully i will explain all the way, so no worries
Please if you can, share this video if it is helpful, and please subscribe for more tutorials :)
And go ahead, share feedback in the comments on what i should improve, i appreciate them :P
Just gonna say this, that's not my voice lol, i used text to speech
Oh hey- This video is doing somewhat decent-
How would you implement connected physics objects using this extension? To make things like rope or chains?
@@ghastdude589 I believe griffpatch has a tutorial on this without the extension; i don't think atm it is possible sadly :'P
@@Cheeming-Bepis I am aware that this has been made in vanilla Scratch, my issue with that is getting it to interact with the box2d physics objects
@@ghastdude589 Ah; if you want them to collide then you have to make the other sprite also have phsyics enabled; just follow the same steps on the other sprites and it should work.
@@Cheeming-Bepis That's where I'm having issues. Any connections glitch out when near each other, sometimes they flail EVERYWHERE, and sometimes they just slowly glide down. I can't pinpoint what's going wrong with the code because I'm not used to the extension yet
Works
Glad to know! :)
the hitboxes are broken, whenever i make a sprite in the shape of a bowl or something like that, the hitbox fills in the empty space of the bowl shaped thing.
Yeah, Box-2D hasn't been worked on for a while, I'll try and find a solution whenever i make a tutorial for this stuff again.
how to make a physics object collide with a non physics object? such as a level?
You can apply physics to a non phsycis object; then use a fixed in place block to freeze it if you do not want the object to move.
@@Cheeming-Bepis did that, but even in precision mode the collider is very off.
@@notkirb_ I think not using precision is better for it; though this may be a Box-2D bug.
@@Cheeming-Bepis I just decided to make each part of the level a separate sprite cuz I couldn't figure out how to fix it
@@notkirb_ The only fix is to not have any concave areas in your sprite. Use multiple basic shapes to form a more complex object