Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » How to make collision for a platformer
- steeldoo
- Scratcher
6 posts
How to make collision for a platformer
I don't know how to make collision for a platformer and it has been bugging me a lot can someone help me please
- supergamer10000
- Scratcher
1000+ posts
How to make collision for a platformer
Hmm, I think this belongs in I don't know how to make collision for a platformer and it has been bugging me a lot can someone help me pleaseHelp with Scripts. Reporting to be moved
Ask yourself, if you were hacked and lost hours, upon hours of work, would you regret not having a strong password that only takes 5 minutes to make?
Is it time to update your password? Here are some tips to make a strong password:
Length: The longer the password, the stronger it is. A password that is at least 12 characters long.
Complexity: Combination of upper and lowercase letters, numbers, and symbols to make it harder to crack.
Uniqueness: Don't use easily guessable information like your name, address, or date of birth. Also, avoid using the same password for multiple accounts.
Passphrases: A phrase made up of random words, numbers, and symbols, as these can be easier to remember but still secure.
Randomness: Use a random password generator to create a unique and unpredictable password.
Regular updates: Regularly change your passwords to stay ahead of potential security threats.
Remember, the goal is to create a password that is strong, unique, and difficult for others to guess.
I would estimate more than 40% of scratchers have passwords that are hard to guess by a human, but easy to guess by a computer. You never know if today would be the day you lose everything.
Even if just one person was saved from losing hours and hours of work, my mission is accomplished.
- Nin100GameronScratch
- Scratcher
100+ posts
How to make collision for a platformer
Hmm, I think this belongs in I don't know how to make collision for a platformer and it has been bugging me a lot can someone help me pleaseHelp with Scripts. Reporting to be moved
This is in Help with Scripts
- Nin100GameronScratch
- Scratcher
100+ posts
How to make collision for a platformer
Hmm, I'm not sure how myself, but I've seen people do a different costume named “Hitbox” that's invisible and then they do stuff with that.
- TurtleLegos
- Scratcher
1000+ posts
How to make collision for a platformer
Correct! Hitboxes are very useful for this. When coding collision, users use a hitbox sprite. I will try to replicate the code for it below: Hmm, I'm not sure how myself, but I've seen people do a different costume named “Hitbox” that's invisible and then they do stuff with that.
Code for Player
define hitbox entrance code or whatever you wanna call itCode for Hitbox
(var-hitbox y)
(var-hitbox x)
forever
set [var-hitbox y v] to (y position)
set [var-hitbox x v] to (x position)
end
when green flag clickedMove the hitbox to the right a little if needed.
set y to (var-hitbox y)
set x to (var-hitbox x)
BE DRY, MOIST IS TOO MOIST
hey im back! march 3 2024
- Discussion Forums
- » Help with Scripts
- » How to make collision for a platformer