bullelk12 wrote:
I finally found it again. I disappeared for a bit.
Sorry, I changed the title.
Offline
Averydan wrote:
Can I join? Scratch says I'm new, but I'm not, I'm just new to the site.
Doesn't matter. We accept anyone.
Offline
Offline
Jodymoses wrote:
Um guys...
Yes… ?
Last edited by ErnieParke (2012-09-23 10:16:13)
Offline
ErnieParke wrote:
Jodymoses wrote:
Um guys...
Yes… ?
Exactly what I was thinking.
Offline
JH1010 shouldnt it be
to the post above?whenclicked
foreverchange y byyv ▼iftouching colourset yv v to1ifkey up pressed?set yv v to6change yv v by-0.25
Offline
BirdByte wrote:
I think you should link to the post where the problem was resolved in the OP.
I tried but it didn't work.
Jodymoses wrote:
JH1010 shouldnt it be
to the post above?whenclicked
foreverchange y byyviftouching colour ?setyv ▼to1This should be zero.ifkeyup arrow ▼pressed?setyv ▼to6I opted for the change y veocity by 6 block here but that works too.changeyv ▼by-0.25This should not be in this loop because it would lower you through the ground. Also, I forgot the minus in my example.
Please fix...
Fixed and explained. Also, if you highlight the yellow stuff it will appear in google toolbar so you can read the end of it.
Last edited by JH1010 (2012-09-24 11:25:18)
Offline
Jodymoses wrote:
JH1010 shouldnt it be
to the post above?whenclicked
foreverchange y byyviftouching color ?setyv ▼to1ifkeyup arrow ▼pressed?setyv ▼to6changeyv ▼by-0.25
Please fix...
Fixed, and that wouldn't work.
@JH1010 What went wrong?
Last edited by BirdByte (2012-09-24 11:25:57)
Offline
BirdByte wrote:
Jodymoses wrote:
JH1010 shouldnt it be
to the post above?whenclicked
foreverchange y byyviftouching color ?setyv ▼to1ifkeyup arrow ▼pressed?setyv ▼to6changeyv ▼by-0.25
Please fix...Fixed, and that wouldn't work.
@JH1010 What went wrong?
Outposted. What went wrong with what?
Last edited by JH1010 (2012-09-24 11:26:50)
Offline
JH1010 wrote:
BirdByte wrote:
Jodymoses wrote:
JH1010 shouldnt it be
to the post above?whenclicked
foreverchange y byyviftouching color ?setyv ▼to1ifkeyup arrow ▼pressed?setyv ▼to6changeyv ▼by-0.25
Please fix...Fixed, and that wouldn't work.
@JH1010 What went wrong?Outposted. What went wrong with what?
The link to the solution in OP.
Offline
BirdByte wrote:
JH1010 wrote:
BirdByte wrote:
Fixed, and that wouldn't work.
@JH1010 What went wrong?Outposted. What went wrong with what?
The link to the solution in OP.
It kept linking to the last post, then kept linking to the first post.
Offline
JH1010 wrote:
BirdByte wrote:
JH1010 wrote:
Outposted. What went wrong with what?The link to the solution in OP.
It kept linking to the last post, then kept linking to the first post.
Did you use this code?
[url=http://scratch.mit.edu/forums/viewtopic.php?pid=1393352#p1393352]Gravity/Jumping[/url]
Offline
BirdByte wrote:
JH1010 wrote:
BirdByte wrote:
The link to the solution in OP.It kept linking to the last post, then kept linking to the first post.
Did you use this code?
Code:
[url=http://scratch.mit.edu/forums/viewtopic.php?pid=1393352#p1393352]Gravity/Jumping[/url]
Thanks this worked.
Offline
Having a problem with playing a sound when one sprite touches another. The code for the whole program is quite lengthy, but the part plays the sound is rather simple:
When I run the script, the sprite will always hide at the appropriate time, but it will often not play the cricket sound. Most of the time it does, but sometimes it doesn't. Is it because there are too many other scripts that are all being executed at the same time? Or is it because the hide block interferes with the cricket sound block? Any help would be appreciated.when space key pressedshowgo to x:25 y:25forevermove 5 stepsif on edge bounceif touching sprite 1play soundcricketuntil doneif touching sprite 7go to sprite 6if touching sprite 6go to sprite 7end forever loopWhen space key pressedforeverif touching sprite 1hidewait 1 secshowend forever loop
Offline
I would exchange hide with set ghost to 100 and show with set ghost to 0.
fix pleasewhenclicked
foreveriftouching [sprite 1]setghosteffect to100hideelsesetghosteffect to0show
Last edited by Jodymoses (2012-09-26 01:11:15)
Offline
Jodymoses wrote:
I would exchange hide with set ghost to 100 and show with set ghost to 0.
fix pleasewhenclicked
foreveriftouchingsprite1 ▼?setghosteffect to100hideelsesetghosteffect to0show
Fixed,
strawpile wrote:
Having a problem with playing a sound when one sprite touches another. The code for the whole program is quite lengthy, but the part plays the sound is rather simple:
whenspace ▼key pressedshowgo to x:25y:25forevermove5stepsif on edge, bounceiftouchingsprite1 ▼?play soundcricket ▼until doneiftouchingsprite7 ▼?go tosprite6 ▼iftouchingsprite6 ▼?go tosprite7 ▼When I run the script, the sprite will always hide at the appropriate time, but it will often not play the cricket sound. Most of the time it does, but sometimes it doesn't. Is it because there are too many other scripts that are all being executed at the same time? Or is it because the hide block interferes with the cricket sound block? Any help would be appreciated.whenspace ▼key pressedforeveriftouchingsprite1 ▼?hidewait1secsshow
I fixed your scratchblocks code
Now, you could do what Jodymoses said, but here's another solution:
whenspace ▼key pressedshowgo to x:25y:25forevermove5stepsif on edge, bounceiftouchingsprite1 ▼?broadcasthide ▼play soundcricket ▼until doneiftouchingsprite7 ▼?go tosprite6 ▼iftouchingsprite6 ▼?go tosprite7 ▼
when i receivehide ▼hidewait1secsshow
Last edited by BirdByte (2012-09-26 05:40:06)
Offline
Jodymoses wrote:
Yep 'cos ghost 100 just makes it invisible but not inactive, while hide makes it inactive
Actually, hide makes it unable to sense/be sensed, but it can move.
Offline