Discuss Scratch

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

steeldoo wrote:

I don't know how to make collision for a platformer and it has been bugging me a lot can someone help me please
Hmm, I think this belongs in Help 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

supergamer10000 wrote:

steeldoo wrote:

I don't know how to make collision for a platformer and it has been bugging me a lot can someone help me please
Hmm, I think this belongs in Help with Scripts. Reporting to be moved

This is in Help with Scripts

Nin100Gamer

My PROfile

Hope you all have a great day!

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.

Nin100Gamer

My PROfile

Hope you all have a great day!

TurtleLegos
Scratcher
1000+ posts

How to make collision for a platformer

Nin100GameronScratch wrote:

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.
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:
Code for Player
define hitbox entrance code or whatever you wanna call it
(var-hitbox y)
(var-hitbox x)
forever
set [var-hitbox y v] to (y position)
set [var-hitbox x v] to (x position)
end
Code for Hitbox
when green flag clicked
set y to (var-hitbox y)
set x to (var-hitbox x)
Move the hitbox to the right a little if needed.

BE DRY, MOIST IS TOO MOIST

hey im back! march 3 2024

Powered by DjangoBB