Discuss Scratch

ForegoingAZA909
Scratcher
52 posts

The player is able to clip through walls by getting hit next to one.

Sorry for the repost, but my last topic was dead and not well explained.
So, when you increase the hp (a single variable in the “hp” sprite, you need to do this because the “demo” has 1hp as a joke) then start the game and hold right, when the laser hits you you will clip through the wall. I'm pretty sure it's because I've set it up so the player goes backwards a couple steps when it's touching the color white, and takes damage when touching the color red. I'm not sure what's conflicting about the code, all I know is that it's nothing to do with the laser sprite as it has no code besides making the laser go across the screen.

Link to the project:
https://scratch.mit.edu/projects/556896856/

when I receive [cool idea v]
if <(pick random (1) to (2)) = [1]> then
set [ambition v] to [99999]
wait (1) weeks
set [motivation v] to [0]
end
Hi! I'm ForegoingAZA909, who also goes by names such as: Fore, AZA, 909 (by like, one guy), ToaSt, Storyboard, ToaSb (???), and more(probably).
CompassesHelpMe
Scratcher
61 posts

The player is able to clip through walls by getting hit next to one.

When you take damage the “man” switches to a blank costume and back a few times and when it is blank it no longer detects itself touching the wall. Fix this by making the second costume something other than a blank one, like a red ball or something.

yes
ForegoingAZA909
Scratcher
52 posts

The player is able to clip through walls by getting hit next to one.

CompassesHelpMe wrote:

When you take damage the “man” switches to a blank costume and back a few times and when it is blank it no longer detects itself touching the wall. Fix this by making the second costume something other than a blank one, like a red ball or something.
Thanks man, I never would've guessed that but it makes so much sense now!

when I receive [cool idea v]
if <(pick random (1) to (2)) = [1]> then
set [ambition v] to [99999]
wait (1) weeks
set [motivation v] to [0]
end
Hi! I'm ForegoingAZA909, who also goes by names such as: Fore, AZA, 909 (by like, one guy), ToaSt, Storyboard, ToaSb (???), and more(probably).

Powered by DjangoBB