Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Get background to change when two sprites touch
- parq
-
7 posts
Get background to change when two sprites touch
Hi community,
I'm working on a project on scratch and I'm trying to get a backdrop to change when two sprites on screen touch each other. I've coded the backdrop to change and each sprite as well but it doesn't seem to work. I've been using broadcast to try to get it done with no luck. I think I'm missing something. Can someone help me out?
Note: I'm a starter with no previous experience with programming.
Thanks in advance,
I'm working on a project on scratch and I'm trying to get a backdrop to change when two sprites on screen touch each other. I've coded the backdrop to change and each sprite as well but it doesn't seem to work. I've been using broadcast to try to get it done with no luck. I think I'm missing something. Can someone help me out?
Note: I'm a starter with no previous experience with programming.
Thanks in advance,
- parq
-
7 posts
Get background to change when two sprites touch
Hi powercon5,
i tried your solution but it didnt work for me.
i currently have these blocks on my sprite (cant upload a pic atm):
when backdrop switches to <1>
show
if <touching clock> then
switch backdrop to <2>
else
forever
show
go to <mouse pointer>
hide
thanks
i tried your solution but it didnt work for me.
i currently have these blocks on my sprite (cant upload a pic atm):
when backdrop switches to <1>
show
if <touching clock> then
switch backdrop to <2>
else
forever
show
go to <mouse pointer>
hide
thanks
- powercon5
-
1000+ posts
Get background to change when two sprites touch
if you share it I could have a look at the script Hi powercon5,
i tried your solution but it didnt work for me.
i currently have these blocks on my sprite (cant upload a pic atm):
when backdrop switches to <1>
show
if <touching clock> then
switch backdrop to <2>
else
forever
show
go to <mouse pointer>
hide
thanks
- dhdguysg
-
100+ posts
Get background to change when two sprites touch
Easy, Put this into the sprite Hi powercon5,
i tried your solution but it didnt work for me.
i currently have these blocks on my sprite (cant upload a pic atm):
when backdrop switches to <1>
show
if <touching clock> then
switch backdrop to <2>
else
forever
show
go to <mouse pointer>
hide
thanks
- parq
-
7 posts
Get background to change when two sprites touch
if you share it I could have a look at the script Hi powercon5,
i tried your solution but it didnt work for me.
i currently have these blocks on my sprite (cant upload a pic atm):
when backdrop switches to <1>
show
if <touching clock> then
switch backdrop to <2>
else
forever
show
go to <mouse pointer>
hide
thanks
i shared the project for viewing purposes. You can check it out at my profile.
Let me know what you see.
- Catsarefun
-
57 posts
Get background to change when two sprites touch
This should work, parq!
- gadgetguy2006
-
79 posts
Get background to change when two sprites touch
i need help getting the sprite to be able to move while jumping in a platformer
Last edited by gadgetguy2006 (Feb. 7, 2016 11:40:48)
- Paddle2See
-
1000+ posts
Get background to change when two sprites touch
Please make your own topic in this section - look for the New Topic button in the upper right hand area of the screen when you are on the main directory i need help getting the sprite to be able to move while jumping in a platformer
https://scratch.mit.edu/discuss/7/
Or, you can click this link
https://scratch.mit.edu/discuss/7/topic/add/
- Discussion Forums
- » Help with Scripts
-
» Get background to change when two sprites touch