Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Help with collision
- 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!
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!
- MrKingofScratch
- Scratcher
100+ posts
Help with collision
Specifically the collision code is in the collisionStep custom block
- MrKingofScratch
- Scratcher
100+ posts
Help with collision
bump ig (5/6)
Last edited by MrKingofScratch (May 6, 2024 22:36:01)
- 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
- MrKingofScratch
- Scratcher
100+ posts
Help with collision
thanks a lot for responding! I'll check it out
- Discussion Forums
- » Help with Scripts
- » Help with collision