Discuss Scratch

mrscratcher123434305
Scratcher
37 posts

Boss hiding mechanism

nah, didnt change anything for some reason https://scratch.mit.edu/projects/1162696800/
09878901234321
Scratcher
500+ posts

Boss hiding mechanism

I looked through your code, and in the Inkman sprite, you never used
set rotation style [left-right v]
to set the rotation style and you never used the
point in direction []
block to make him face left or right.



I can confirm that it does work after trying it myself. You got this!
mrscratcher123434305
Scratcher
37 posts

Boss hiding mechanism

I did put it in my code, its in the inkman sprite heres an example:
when I receive [ Start the game ]
if <touching [ Sprite3] ?> then
set rotation style [ left right ]
point in direction ( 90)
switch costume to [ costume14]
switch costume to [ costume15]
switch costume to [ costume16]
wait (0.30) secs
switch costume to [ costume10]
end

Last edited by mrscratcher123434305 (April 22, 2025 01:40:59)

09878901234321
Scratcher
500+ posts

Boss hiding mechanism

Sorry, I see it now. If you're using different costumes to face left and right, you don't need the
point in direction []
block at all. In your sprite titled Inkman, you have these 4 chunks of code.


If you replace them with these 2, it should work better.



This works because the new code uses a forever loop to always check when it should do the animation, rather than just at the beginning of the game.

Last edited by 09878901234321 (April 22, 2025 02:31:12)

mrscratcher123434305
Scratcher
37 posts

Boss hiding mechanism

Both costumes are facing in the different direction but for some dang reason its still facing right
mrscratcher123434305
Scratcher
37 posts

Boss hiding mechanism

you there?
09878901234321
Scratcher
500+ posts

Boss hiding mechanism

Delete these four blocks of code from your Inkman sprite.



Then, create these ones instead:



This should work if you do it correctly.

Last edited by 09878901234321 (April 23, 2025 00:31:53)

mrscratcher123434305
Scratcher
37 posts

Boss hiding mechanism

That didnt work unfortunately, it even made it worse i would say.
09878901234321
Scratcher
500+ posts

Boss hiding mechanism

I am reviewing the project you shared, and I noticed that you did not implement the fix as I instructed. Are you possibly working on a different project? If not, it seems you are not following my instructions on how to implement the code, which is why it is not functioning correctly.
mrscratcher123434305
Scratcher
37 posts

Boss hiding mechanism

I did put it in the inkman sprite, but the animation was more choppy so i deleted it and put the original code back in (temporarily)
mrscratcher123434305
Scratcher
37 posts

Boss hiding mechanism

Hello?
mrscratcher123434305
Scratcher
37 posts

Boss hiding mechanism

bump

Powered by DjangoBB