Discuss Scratch

srikar0896
New to Scratch
2 posts

Sub-stack of a Hat block in JS extension is executing only once.

For a Hat Block in a JS extension, I am returning true always like this
extension.whenAnalogValue = function(channel,operation,value){
return true;
}
see - https://imgur.com/xPKbuG0
However, I have expected the sprite to continuously rotate by15 degrees. But the sprite rotates only once and then stops rotating. like this
see - https://imgur.com/KTLYCGk

So, I am not sure why it was not working when I am always returning true from the function.My browser / operating system: Linux, Chrome 66.0.3359.139, Flash 29.0 (release 0)

Powered by DjangoBB

Standard | Mobile