Variables not setting properly

i need help with variables not setting to the correct value/being triggered by the wrong action if anyone would like to

9 Likes

What value should they be? Where is every block they are eing set? Why do you think they are incorrect?
@leaders new topic please

8 Likes

Link to project?

4 Likes

Link to the project: https://c.gethopscotch.com/p/10y8rkr5e6

HP is supposed to be at 10 and go down by one every time the TR hits the parallelogram

2 Likes

Instead of “when is touching” to “when bumps” and see if that works

1 Like

it’s on bumps on the project… still doesn’t work

1 Like

yeah that works

1 Like

do it in the “tilted rectangle” object

1 Like

Change to when bumps

Problem solved booyah out of likes

2 Likes

@Strongerthanyou, here is a working version

https://c.gethopscotch.com/p/10yaehrgez

2 Likes

2 Likes

this is perfect thanks so much!

2 Likes

Everything else working correctly?

3 Likes

now she just stays there… even when she’s hit 10 times…

1 Like

Two things:

  1. You don’t have anything under “when HP equals 0”
  2. You said equals zero, which means that even if the HP is less than 0, it isn’t exactly 0
    You might want to use less than or equal to 0
    Hope this helps and good luck!
7 Likes

how do you do greater than/ equal to?

2 Likes

I posted an example, look up Chillanna Rules! Debug

4 Likes

perfect, thanks!

2 Likes

Best of luck!

4 Likes