Comparaison Bug (9 > 83)

Use this template to make awesome bug reports:

Your username:
NTh3R
What kind of device are you using?:
Ipad 6th generation, iPadOS 14.4.0
1 sentence description of the problem
I was debugging with the < and the >, and then it shows that 9 > 83 is true!
Steps that the Hopscotch team can take to reproduce my problem every time:

  1. impossible to reproduce in a new draft

I expected this to happen:
Show 0 (false)
But instead this happened:
Show 1 (true)
Here’s a sweet screenshot:

bug

code

  • Crazy bug
  • Happens to me at least one time

0 voters

6 Likes

Hmm I might be wrong but 1 is true and 0 is false. It’s checking that statement and SurviveTimeInAGame (83) > SoloSurviveTime (9) so it returns 1 (true).

Let me know if I missunderstood what you were saying (:

8 Likes

Theirs is actually SurviveTimeInAGame (9) > SoloSurviveTime (83), which for some reason returned true, even though the statement is false.

5 Likes

Oh I see! The variable names were confusing me lol

4 Likes

THT won’t be able to fix this, so I think it’s time to summon the great @awesome_e to come and see the issue…

4 Likes

Hmm actually I think the variables might need to be switched…? Maybe not though. Idk why but the names are confusing me.

2 Likes

@NTh3R, this sounds crazy for me to say, but maybe try setting the user var to a game var (set :arrow_forward: SoloSurviveTime to :iphone: SoloSurviveTime). It may be similar to the problem with the user variable bug (not setting the variable results min(9, :iphone: var) to return 10000 if set to 10000 before.

2 Likes

if you can’t reproduce it in any drafts, it’s probably something to do with your code—not a bug with hopscotch, but:

  • duplicate the draft and play it. does it still happen?
  • reset user variables and try to produce the bug again, that could be something but probably not
  • are there scene changes anywhere? again this probably isn’t anything but might as well ask
  • what’s the code for the highestScore object (and the time for this game object)?
2 Likes

@Madi_Hopscotch here’s the topic
@Nobody it’s exactly the same bug as yesterday, but this time i used True/False statement
@Crosbyman64 i’ll try later, cuz i have to change a lot of things
@/Awesome_E (you’ve been already tagged) pls help me :)

3 Likes

no, but it will happen (same thing as yesterday. i published it and then unpublished it, and then there’s no bug with the notification)

variable is automatically reseted after duplicating the project

nope, i don’t use scenes

sry i’m out of likes

2 Likes

I meant in any version of the project, oops—sorry that I didn’t clarify that

if you exit out of the draft (when it is bugged) then enter it, does it happen?

what’s the average fps?

relating to the picture:
do when scene matches play and see if that changes anything
what’s in the count ability?

4 Likes

?

yes

60 (i hate when it’s too laggy)

sorry if i didn’t say that yesterday, but it’s only the “check once if” block that’s not running

I need it for a loop

Check once if !Scene = !Play

Increase SurviveTimeInAGame by 1
Repeat 60 times:
Wait 0
Repeat the function

3 Likes

ah, it’s fine, that’s helpful

that’s also really helpful

when does the !Scene variable change? is the high variable set immediately after you perish? is it set only once after you perish?

3 Likes

when i die, the variable is immediately set to !StopPlaying

2 Likes

ok, try setting that 60 times (in a repeat loop) and see if that changes anything

2 Likes

this?

2 Likes

oh wait I misread your post sorry, repeat the code that isn’t running 60 times and see if that does anything

4 Likes

uh, sorry, but in which code?

2 Likes

the check once if in the screenshot here:

2 Likes
it’s not working and...

image

bruh :joy:

3 Likes