Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » How to make collisions
- AmFaiq
-
33 posts
How to make collisions
How to make collision???

Last edited by AmFaiq (July 31, 2021 12:18:07)
- Dankiel_
-
100+ posts
How to make collisions
Of what type? are you making a platformer? top down?
- Yusei-Fudo
-
1000+ posts
How to make collisions
Need more information than this. I am making a rpg
- Lirey
-
100+ posts
How to make collisions
If it's from a Birdseye's view (Like the very old Pokémon games) you usually add a script like this: How to make collision???
But that can get tricky as you would always want the character to point in the direction as the object. So to avoid messing with rotation I usually create these for the movements:
And for the s key you would input the opposite:
For the A key you would do the same code as the S key except turn the Change Ys into Change Xs. For the D key you would do the same code as the W key except change the Change Ys code into Change Xs. Hope this helped, and sorry for any confusion! (Editing note: When making something negative add a - sign in front of the number)
Last edited by Lirey (Aug. 1, 2021 23:44:44)
- BettaBubbles20
-
40 posts
How to make collisions
Here is a simple collision engine.
Like this? Visit my profile at @BettaBubbles20 to find lots of amazing games.
- Discussion Forums
- » Help with Scripts
-
» How to make collisions