Discuss Scratch

BasketballForLife
Scratcher
23 posts

Need Help!

I need help with something that I don't know how to fix. For my game, when I pass level 1 and go onto level 2, my sprite won't move. I copied the same script I used to make my sprite move on level 1. It's really irritating.

My scripts were:

When (green flag) is clicked
Go to : (x coordinates) and (y coordinates)
Point in direction 90
Forever:
If (right arrow clicked) then
Change x by 1
If on edge bounce.
If (left arrow clicked) then
Change x by -1
If on edge bounce.

When (green flag) is clicked
If (touching color (this))
Change backdrop to (Level 2)

And I copied the exact first script I wrote here and it still doesn't work. Help!

when green flag clicked
say [O hai der]
Centrifugal
Scratcher
500+ posts

Need Help!

Can you share the project so we can get a better idea of what the game dynamics are and if another sprite is causing this?

Settlers of Inland - Age of Ƭɍeasoƞ

drmcw
Scratcher
1000+ posts

Need Help!

BasketballForLife wrote:

I need help with something that I don't know how to fix. For my game, when I pass level 1 and go onto level 2, my sprite won't move. I copied the same script I used to make my sprite move on level 1. It's really irritating.

My scripts were:

When (green flag) is clicked
Go to : (x coordinates) and (y coordinates)
Point in direction 90
Forever:
If (right arrow clicked) then
Change x by 1
If on edge bounce.
If (left arrow clicked) then
Change x by -1
If on edge bounce.

When (green flag) is clicked
If (touching color (this))
Change backdrop to (Level 2)

And I copied the exact first script I wrote here and it still doesn't work. Help!
In the second script try changing from if touching colour (this) to wait until touching colour (this). You'll then find that the 2 scripts will interfere with each other. You really should be using broadcasts to synchronise things, or rethink your logic.

Last edited by drmcw (Oct. 12, 2013 20:25:19)


10 !
ScratchVaders or Galaga?
Maybe Eliza can help you decide?
BasketballForLife
Scratcher
23 posts

Need Help!

drmcw wrote:

BasketballForLife wrote:

I need help with something that I don't know how to fix. For my game, when I pass level 1 and go onto level 2, my sprite won't move. I copied the same script I used to make my sprite move on level 1. It's really irritating.

My scripts were:

When (green flag) is clicked
Go to : (x coordinates) and (y coordinates)
Point in direction 90
Forever:
If (right arrow clicked) then
Change x by 1
If on edge bounce.
If (left arrow clicked) then
Change x by -1
If on edge bounce.

When (green flag) is clicked
If (touching color (this))
Change backdrop to (Level 2)

And I copied the exact first script I wrote here and it still doesn't work. Help!
In the second script try changing from if touching colour (this) to wait until touching colour (this). You'll then find that the 2 scripts will interfere with each other. You really should be using broadcasts to synchronise things, or rethink your logic.

I did that, and my sprite still won't move when the backdrop switches.

when green flag clicked
say [O hai der]
BasketballForLife
Scratcher
23 posts

Need Help!

Centrifugal wrote:

Can you share the project so we can get a better idea of what the game dynamics are and if another sprite is causing this?

Sorry, it's for a “secret project” I'm working on, but when I'm finished I will publish it. Never mind my username, this game is not basketball related.

when green flag clicked
say [O hai der]
kvchild123
Scratcher
11 posts

Need Help!

I need help here. Isn't there a block saying previous costume? There is a block saying next costume but not previous costume. How can we make a sprite change its costume to the previous one by pressing the down arrow? Please help.
scubajerry
Scratcher
1000+ posts

Need Help!

kvchild123 wrote:

I need help here. Isn't there a block saying previous costume? There is a block saying next costume but not previous costume. How can we make a sprite change its costume to the previous one by pressing the down arrow? Please help.
Please don't post the same question multiple places!

Powered by DjangoBB