Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » collision with movement physics in game
- Nico9o7
-
5 posts
collision with movement physics in game
https://scratch.mit.edu/projects/1045756441/
How can i make my sprite (greaseball) not collide with certain colors? i was thinking
thanks!
How can i make my sprite (greaseball) not collide with certain colors? i was thinking
thanks!

Last edited by Nico9o7 (July 19, 2024 21:48:47)
- TheCreatorOfUnTV
-
1000+ posts
collision with movement physics in game
You might want to put that in a custom block:
- bsteichman
-
500+ posts
collision with movement physics in game
why would run without screen refresh matter here? there's no loops You might want to put that in a custom block:
anyways here's what i'd do
Last edited by bsteichman (July 20, 2024 02:08:11)
- Nico9o7
-
5 posts
collision with movement physics in game
Thanks for the help, but neither work. maybe if i dont figure out the collision physics i can always use ol' reliable 

- bsteichman
-
500+ posts
collision with movement physics in game
that's weird because i got it to work on my end Thanks for the help, but neither work. maybe if i dont figure out the collision physics i can always use ol' reliable
- bsteichman
-
500+ posts
collision with movement physics in game
i changed your movement physics block to this:
same principle as my previous response.
note: you can have it more bouncy than a value of 1, but it'll act like a trampoline and will bounce with more speed than you put into it
same principle as my previous response.
note: you can have it more bouncy than a value of 1, but it'll act like a trampoline and will bounce with more speed than you put into it
Last edited by bsteichman (July 20, 2024 22:48:59)
- Nico9o7
-
5 posts
collision with movement physics in game
i changed your movement physics block to this:
same principle as my previous response.
note: you can have it more bouncy than a value of 1, but it'll act like a trampoline and will bounce with more speed than you put into it
the code worked partly! the y velocity is slower if you dont put it in the if _ then block. something like this:
- Discussion Forums
- » Help with Scripts
-
» collision with movement physics in game