Discuss Scratch

640257SH
Scratcher
27 posts

Scratch not knowing what its touching

My browser / operating system: ChromeOS 13816.55.0, Chrome 90.0.4430.86, No Flash version detected
I am using –AwomeCode– platformer engine, and at the start of the second part, (after the sun implodes) the player sprite cannot tell that it is touching the grass sprite. I do not know how to fix this, and I've tried to fix it by moving everything around, but it did not get fixed.
Game: https://scratch.mit.edu/projects/501231764/

Last edited by 640257SH (May 21, 2021 21:12:21)


when I receive [scratch time v]
glide (energy) secs to x: (computerX) y: (computerY)
repeat until <<(energy) < [10]> or <(bored) = [true]>>
if <(struggle) = [true]> then
say [help me please]
else
code
end
end
Thingied
Scratcher
1000+ posts

Scratch not knowing what its touching

The problem is that the sprite is hidden so it just falls right through so do something like this:
when I receive [show v]
show
640257SH
Scratcher
27 posts

Scratch not knowing what its touching

Thingied wrote:

The problem is that the sprite is hidden so it just falls right through so do something like this:
when I receive [show v]
show
I have done that, but the sprite is not hidden. The lamp shows its location and it is been told to show after the supernova. Thanks!
when I receive [ Response to my question]
if <[Awnser] = [True]> then
say [Thanks]



else
say [Not that]
say [Thanks!] for (2) secs
end
end

when I receive [scratch time v]
glide (energy) secs to x: (computerX) y: (computerY)
repeat until <<(energy) < [10]> or <(bored) = [true]>>
if <(struggle) = [true]> then
say [help me please]
else
code
end
end
Thingied
Scratcher
1000+ posts

Scratch not knowing what its touching

640257SH wrote:

Thingied wrote:

The problem is that the sprite is hidden so it just falls right through so do something like this:
when I receive [show v]
show
I have done that, but the sprite is not hidden. The lamp shows its location and it is been told to show after the supernova. Thanks!
when I receive [ Response to my question]
if <[Awnser] = [True]> then
say [Thanks]



else
say [Not that]
say [Thanks!] for (2) secs
end
end
The sprite IS hidden but the trail isn't which makes it look like the player is showing
640257SH
Scratcher
27 posts

Scratch not knowing what its touching

Thingied wrote:

640257SH wrote:

Thingied wrote:

The problem is that the sprite is hidden so it just falls right through so do something like this:
when I receive [show v]
show
I have done that, but the sprite is not hidden. The lamp shows its location and it is been told to show after the supernova. Thanks!
when I receive [ Response to my question]
if <[Awnser] = [True]> then
say [Thanks]



else
say [Not that]
say [Thanks!] for (2) secs
end
end
The sprite IS hidden but the trail isn't which makes it look like the player is showing
I put a forever block on it making it show and it still doesn't work. Are you on level 9?

when I receive [scratch time v]
glide (energy) secs to x: (computerX) y: (computerY)
repeat until <<(energy) < [10]> or <(bored) = [true]>>
if <(struggle) = [true]> then
say [help me please]
else
code
end
end
Thingied
Scratcher
1000+ posts

Scratch not knowing what its touching


640257SH wrote:

Thingied wrote:

640257SH wrote:

Thingied wrote:

The problem is that the sprite is hidden so it just falls right through so do something like this:
when I receive [show v]
show
I have done that, but the sprite is not hidden. The lamp shows its location and it is been told to show after the supernova. Thanks!
when I receive [ Response to my question]
if <[Awnser] = [True]> then
say [Thanks]



else
say [Not that]
say [Thanks!] for (2) secs
end
end
The sprite IS hidden but the trail isn't which makes it look like the player is showing
I put a forever block on it making it show and it still doesn't work. Are you on level 9?
Add this to the player sprite and it's fixed
640257SH
Scratcher
27 posts

Scratch not knowing what its touching

when I receive [ Solution]
say [Thank you so much!]

when I receive [scratch time v]
glide (energy) secs to x: (computerX) y: (computerY)
repeat until <<(energy) < [10]> or <(bored) = [true]>>
if <(struggle) = [true]> then
say [help me please]
else
code
end
end
640257SH
Scratcher
27 posts

Scratch not knowing what its touching

Thingied wrote:

640257SH wrote:

Thingied wrote:

640257SH wrote:

Thingied wrote:

The problem is that the sprite is hidden so it just falls right through so do something like this:
when I receive [show v]
show
I have done that, but the sprite is not hidden. The lamp shows its location and it is been told to show after the supernova. Thanks!
when I receive [ Response to my question]
if <[Awnser] = [True]> then
say [Thanks]



else
say [Not that]
say [Thanks!] for (2) secs
end
end
The sprite IS hidden but the trail isn't which makes it look like the player is showing
I put a forever block on it making it show and it still doesn't work. Are you on level 9?
Add this to the player sprite and it's fixed
I thought you meant that the ground sprite was hidden!

when I receive [scratch time v]
glide (energy) secs to x: (computerX) y: (computerY)
repeat until <<(energy) < [10]> or <(bored) = [true]>>
if <(struggle) = [true]> then
say [help me please]
else
code
end
end
triceratops-raptor
Scratcher
68 posts

Scratch not knowing what its touching

When I am making a project.. I am not getting the result according to the code..

I have been facing this problem in 2 projects..
Please help me.

when green flag clicked
No result

triceratops-raptor - Chill in Scratch
Followers: 287
Following: 277

Powered by DjangoBB