Discuss Scratch

MrKingofScratch
Scratcher
100+ posts

Help with collision

I'm currently working on an airship/flying boat thing. I'm trying to make it collide with the land. You can turn and move forwards and backwards. I got the turning collision code working, and tried using the same concept for the collision moving forward/backward. However, the ship just gets stuck.

https://scratch.mit.edu/projects/1005281242/editor/

here are a few ideas that might help:
maybe the fact that it's scrolling does something
the fact that rotation happens before moving forward/backward could mess up some stuff

Thanks in advance for your help!

Last edited by kaj (Tomorrow 00:00:00)
100th post!
MrKingofScratch
Scratcher
100+ posts

Help with collision

Specifically the collision code is in the collisionStep custom block

Last edited by kaj (Tomorrow 00:00:00)
100th post!
MrKingofScratch
Scratcher
100+ posts

Help with collision

bump ig (5/6)

Last edited by MrKingofScratch (May 6, 2024 22:36:01)


Last edited by kaj (Tomorrow 00:00:00)
100th post!
MrKingofScratch
Scratcher
100+ posts

Help with collision

bump (5/7)

Last edited by kaj (Tomorrow 00:00:00)
100th post!
MrKingofScratch
Scratcher
100+ posts

Help with collision

bump (5/11)

Last edited by kaj (Tomorrow 00:00:00)
100th post!
MrKingofScratch
Scratcher
100+ posts

Help with collision

bump (5/12)

Last edited by kaj (Tomorrow 00:00:00)
100th post!
yadayadayadagoodbye
Scratcher
1000+ posts

Help with collision

try taking a look at this project. Its not exactly the most straight-forward since I made it quite a while ago, but perhaps you could find some ideas in the “objects (collidable)” sprite

Scratchers that I've cati-fied
MrKingofScratch
Scratcher
100+ posts

Help with collision

thanks a lot for responding! I'll check it out

Last edited by kaj (Tomorrow 00:00:00)
100th post!

Powered by DjangoBB