Discuss Scratch

LeggoMyEggos123
Scratcher
11 posts

Remixing Help for Among Us: Impostor's Revenge

@ekamveer13 suggested a great idea about modifications when remixing to my project, Among Us Sus: Impostor's Revenge. You can remix my project, but if you don't understand how to code works, just comment your issue in the comments! I will try my best and all of my knowledge to help, but I cannot guarantee that I will know everything! I will also do my best to get back to you as soon as possible. When remixing, please be sure to change something. If you liked my project, please give a heart and a star! Ads will be removed in both this forum and the project itself.

How to comment for help:
1. What sprite is this code in that you don't understand?
2. Use the Scratch Block tab in your post to construct an exact replica of the code you don't understand.
3. What's your issue? State it under the code blocks! What value should the variable be? Can I create more crewmates? Ask them here!
4. If your issue lies within multiple scripts or sprites, repeat the above steps! Make sure I can easily distinguish between one line of code with an issue with the other(s).

IMPORTANT: WHEN EDITING, MAKE SURE ITS A REMIX, NOT CODE YOU'RE EDITING WITHOUT REMIXING! YOUR PROJECT WON'T SAVE IF ITS NOT A REMIX!

whenclickedrepeat2keepcoding!saytake a break outsideformanysecs
Example of code written in the forum with Scratch Code Blocks. This is the preferred method of explaining your issue.
ekamveer13
Scratcher
8 posts

Remixing Help for Among Us: Impostor's Revenge

ok this is a bit hard doing it without remixing but it's working out
ekamveer13
Scratcher
8 posts

Remixing Help for Among Us: Impostor's Revenge

ok i was coding the hallway to medbey and it's super hard the walls won't work you can walk though them!!

Last edited by ekamveer13 (March 6, 2023 03:49:08)

ekamveer13
Scratcher
8 posts

Remixing Help for Among Us: Impostor's Revenge

yeah i can only code the start of the map
LeggoMyEggos123
Scratcher
11 posts

Remixing Help for Among Us: Impostor's Revenge

There is no collision detection in the project, rather the impostor's (and crewmates) only boundaries are Scratch's limits. The impostor cannot go farther than when the center of their sprite touches any edge of the stage. I am not an expert on hitboxes (due to my lack of knowledge when it comes to coding platformers, but I'm going to try to learn!), so the following is an excerpt from @oakleaf15's HitBox Tutorial. I recommend saving a copy of your project, because the code may mess up your project if there is a mistake.
1. Go to the impostor's sprite, and go to the idle costume. Copy the costume, and then create a new sprite. This will be your hitbox sprite.
2. Paste the impostor costume that you copied earlier into the hitbox sprite's costume. Find a way to make the entire costume black. Rename this costume “Hit_Box.” Then add a new costume, and name it “Normal.” Don't draw anything to this.
3. Go to the code tab of the Hitbox sprite. Go to “My Blocks” and add a new block. Name it “Hit_box.” Make sure you check “Run without screen refresh,” or it will not work correctly!
4. Add the following code:
defineHit_boxswitchcostumeto Hit_Boxifcoloristouchingcolor of outline of sprite you want the impostor to not go through?thenmove-10stepsswitchcostumetoNormal
5. Add this:
whenclickedsetrotationstyledon't rotateforeverifkeyright arrowpressed?thenpointindirection90ifkeyleft arrowpressed?thenpointindirection-90ifkeyup arrowpressed?thenpointindirection180ifkeyleft arrowpressed?thenpointindirection0move10stepsHit_Box

Now, rid all code of movement within the Impostor's original sprite. Go back to the the hitbox sprite, and add this code:
whenclickedforeversetHitbox XtoxpositionsetHitbox Ytoyposition

Go to the Impostor sprite, and add this code. This is the final step of the hitbox:
whenclickedforevergotox:HitboxXy:HitboxY

I hope this helps, though I did not test it on my project. If you use this code in your project, make sure that you give credit to @oakleaf15, as the code above is courtesy of them, otherwise your project may be removed or reported if caught shared without credit!
ekamveer13
Scratcher
8 posts

Remixing Help for Among Us: Impostor's Revenge

oh i did another way but i think this is better because i made code but you can see the sprite fixing it's self and i put it in a “run without screen refresh” so i'm going to use the code you just gave me!




ekamveer13
Scratcher
8 posts

Remixing Help for Among Us: Impostor's Revenge

i'm making a copy just in case my project does not work
ekamveer13
Scratcher
8 posts

Remixing Help for Among Us: Impostor's Revenge

ok soo this is a bit hardd

Last edited by ekamveer13 (March 9, 2023 22:35:21)

ekamveer13
Scratcher
8 posts

Remixing Help for Among Us: Impostor's Revenge

yeah i'll code tomorow
ekamveer13
Scratcher
8 posts

Remixing Help for Among Us: Impostor's Revenge

yeah i'm staying with the original code that i made
LeggoMyEggos123
Scratcher
11 posts

Remixing Help for Among Us: Impostor's Revenge

Okay, good luck!
LeggoMyEggos123
Scratcher
11 posts

Remixing Help for Among Us: Impostor's Revenge

Since there's no activity or questions in this forum, I am closing this topic. If you have a question, ask me in the comments of the project.

Powered by DjangoBB