Discuss Scratch

DarthVulva
New to Scratch
1 post

Urgent help required :'(

Hi All

I really need some help, and think that I'm overcomplicating this somehow.

I'm using a version or scratch called SENSE. I have to created a program that uses the current slider value as the currentAmplitude, but then compares this to the previous slider value.

If the currentAmplitude is higher than the previous, then an Up arrow is displayed.
If the currentAmplitude is lower than the previous, then a down arrow should be displayed.
If the readings are the same then a circle should be displayed.

The following is what I have so far, but I'm really stuck and could do with a pointer

I've posted a link to the script because only scratchers can post images

https://i.imgur.com/ZJNQ3ms.jpg

Please help!!

deck26
Scratcher
1000+ posts

Urgent help required :'(

You need to set previousAmplitude to currentAmplitude after making the comparison or you're always comparing current to 0.

Powered by DjangoBB