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
when gf clicked forever change y by (yv v) if <touching colour> set yv v to [1] if <key up pressed?> set yv v to [6] end change yv v by [-0.25] end endto the post above?
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
when gf clicked forever change y by <yv> if <touching colour [#000000]?> set [yv v] to (1) // This should be zero. if <key [up arrow v] pressed?> set [yv v] to (6) // I opted for the change y veocity by 6 block here but that works too. end change [yv v] by (-0.25) // This should not be in this loop because it would lower you through the ground. Also, I forgot the minus in my example. end endto the post above?
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
when gf clicked forever change y by (yv) if <touching color [#FFFFFF]?> set [yv v] to [1] if <key [up arrow v] pressed?> set [yv v] to [6] end change [yv v] by [-0.25] end endto the post above?
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
when gf clicked forever change y by (yv) if <touching color [#FFFFFF]?> set [yv v] to [1] if <key [up arrow v] pressed?> set [yv v] to [6] end change [yv v] by [-0.25] end endto the post above?
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
when gf clicked forever change y by (yv) if <touching color [#FFFFFF]?> set [yv v] to [1] if <key [up arrow v] pressed?> set [yv v] to [6] end change [yv v] by [-0.25] end endto the post above?
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 space key pressed show go to x:25 y:25 forever move 5 steps if on edge bounce if touching sprite 1 play sound (cricket) until done if touching sprite 7 go to sprite 6 if touching sprite 6 go to sprite 7 end forever loop When space key pressed forever if touching sprite 1 hide wait 1 sec show end forever loopWhen 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.
Offline
I would exchange hide with set ghost to 100 and show with set ghost to 0.
when gf clicked forever if <[touching [sprite 1]]> set [ghost] effect to [100]//hide end else set [ghost] effect to [0]//show end endfix please
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.
when gf clicked forever if <touching [sprite1 v]?> set [ghost] effect to [100]//hide else set [ghost] effect to [0]//show end endfix please
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:
when [space v] key pressed show go to x: (25) y: (25) forever move (5) steps if on edge, bounce if <touching [sprite1 v]?> play sound [cricket v] until done end if <touching [sprite7 v]?> go to [sprite6 v] end if <touching [sprite6 v]?> go to [sprite7 v] end endwhen [space v] key pressed forever if <touching [sprite1 v]?> hide wait (1) secs show end endWhen 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.
I fixed your scratchblocks code
Now, you could do what Jodymoses said, but here's another solution:
when [space v] key pressed show go to x: (25) y: (25) forever move (5) steps if on edge, bounce if <touching [sprite1 v]?> broadcast [hide v] play sound [cricket v] until done end if <touching [sprite7 v]?> go to [sprite6 v] end if <touching [sprite6 v]?> go to [sprite7 v] end end
when i receive [hide v] hide wait (1) secs show
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