Discuss Scratch

H_Dur
Scratcher
100+ posts

why

https://scratch.mit.edu/projects/565724657/

Sams shield always shows when you click f even if bad guy is not showing

whY? Please fix
TheZBot
Scratcher
40 posts

why

when green flag clicked
forever
if << <[ (enemy hiding?)] = [1]>> and <<mouse down?> and <touching [mouse pointer v] ?>>> then
show


else
hide
end
end
H_Dur
Scratcher
100+ posts

why

TheZBot wrote:

when green flag clicked
forever
if << <[ (enemy hiding?)] = [1]>> and <<mouse down?> and <touching [mouse pointer v] ?>>> then
show


else
hide
end
end
no
deck26
Scratcher
1000+ posts

why

Don't really understand your question. Please give more details of what is happening and what you think should be happening.
supergamer10000
Scratcher
1000+ posts

why

I don't understand what you need help with please be more specific to what you need help with.
han614698
Scratcher
1000+ posts

why

deck26 wrote:

Don't really understand your question. Please give more details of what is happening and what you think should be happening.
It sounds like when you click “f” a sprite is supposed to show - but ONLY if another sprite is showing (meaning a shield will show if the knight is showing) - but it seems that this “shield” sprite is only showing when the “f” key is pressed, not when the knight is showing and the “f” key is pressed. The solution would be to set a variable “khshow” to “hidden” every time the sprite is hidden and vice versa with showing. This would, per se, give you 15 “f” key clicks/second instead of the current code supporting 30 clicks/second but having bugs.
han614698
Scratcher
1000+ posts

why

bump
H_Dur
Scratcher
100+ posts

why

deck26 wrote:

Don't really understand your question. Please give more details of what is happening and what you think should be happening.
Please be more polite

han614698 wrote:

deck26 wrote:

Don't really understand your question. Please give more details of what is happening and what you think should be happening.
It sounds like when you click “f” a sprite is supposed to show - but ONLY if another sprite is showing (meaning a shield will show if the knight is showing) - but it seems that this “shield” sprite is only showing when the “f” key is pressed, not when the knight is showing and the “f” key is pressed. The solution would be to set a variable “khshow” to “hidden” every time the sprite is hidden and vice versa with showing. This would, per se, give you 15 “f” key clicks/second instead of the current code supporting 30 clicks/second but having bugs.
Thanks! I got it working - closing

Powered by DjangoBB