Discuss Scratch

cops911
Scratcher
100+ posts

New Block

I was thinking that there should be more blocks, because without them, I can't make my project . First of all, instead of the if on edge, bounce block it should be if <>, bounce. Thank you . -cops911



when green flag clicked
wait until <(Love and Fave)=[true]>
set [cops911 v] to [happy]
Babissimo
Scratcher
100+ posts

New Block

Why? There are ways of doing it without the if touching, bounce block
levtey
Scratcher
100+ posts

New Block

You can do:
when green flag clicked
forever

if <(x position) < [-155]> then
if on edge, bounce

end
end

so that it does it only on that edge or near it.

Last edited by levtey (April 6, 2014 19:23:15)

cops911
Scratcher
100+ posts

New Block

It doesn't work.

when green flag clicked
wait until <(Love and Fave)=[true]>
set [cops911 v] to [happy]
Mrman99
Scratcher
100+ posts

New Block

cops911 wrote:

It doesn't work.
Do:
when green flag clicked
forever

if <touching [ v]?> then
turn right (180) degrees

end
end

That should work.

All my projects
-My Games that include leaderboards-
Ball Defense - Stickman Dodge
—————————————————————————————————————————————————————————————————–
My biggest game - Zombie Escape
The Sandbox - An element simulator
Conway's Game of Life
hppavilion
Scratcher
100+ posts

New Block

Mrman99 wrote:

cops911 wrote:

It doesn't work.
Do:
when green flag clicked
forever

if <touching [ v]?> then
turn right (180) degrees

end
end

That should work.
That's turn 180 degrees. If you look at the workaround, it's really complicated. It uses trigonometry. I think it should be
 bounce off [edge v] 
so you could bounce anywhere. The reason it's bounce off is that when bouncing, it also factors in numbers regarding the angle of the wall. This would be based off of the angle of what you bounce off.
gigapouch
Scratcher
1000+ posts

New Block

You should maybe try this:

when green flag clicked
forever
if <touching [edge v]?> then
if on edge, bounce
end
end

I have a Steam account. If you have one too, feel free to add me to your friends list.
Also check out my YouTube channel if you like the outdoors, Minecraft, cars, roller coasters, etc.
1234abcdcba4321
Scratcher
1000+ posts

New Block

gigapouch wrote:

You should maybe try this:

when green flag clicked
forever
if <touching [edge v]?> then
if on edge, bounce
end
end
Why would you overcomplicate things?

I'd highly appreciate it if you were to follow me. Don't forget to go to my profile.
All of my programming suggestions <— You should really get the suggestions move back to the suggestions forum!
Five hundred posts! I never expected to get up there… In only 2-3 months.
Does anyone know what a signature is? I mean, I've already seen 6-7 people get confused.

Powered by DjangoBB