In this project, there is a sprite (dart monkey direction finder) that finds the direction so the towers can point towards the balloons. The towers point in directions other than the balloons. Is the "point toward" block not working? I even tried the workaround in the Scratch Wiki. Can somebody please help me?
Here's an image of the script that's not working:
Last edited by lemonpretzel (2011-02-21 16:32:32)
Offline
Aha! I see the problem... turn the costume of the monkey so that its head is pointed to the right. That should fix it.
Offline
I tried that. http://scratch.mit.edu/projects/lemonpr … st/1614188 (It doesn't work in the new flash player). It works fine with one monkey, but with two monkeys it is like this:
I've noticed that the two monkey's directions are reversed; monkey one is pointing towards the direction monkey two should be pointing, and vice versa. I don't know how to fix it.
And when I put more than two monkeys:
Total chaos!
Please tell me if you have a solution.
Also, the monkeys work by adding the x and y positions of the towers to lists. Then a separate sprite goes to the first tower and points toward a bloon. Then another sprite goes to the pointer sprite and points in its same direction. Then it erases the first stamp by stamping a green circle, and stamps the tower again. I think something is wrong with the code. Please help!
Offline
I just ran into this problem today in my Star Trek game.
The problem is that the Point Towards block accepts a variable, but that functionality only works in the development environment. It does not work when uploaded to the web site.
The workaround that I did was to have a big nested IF ... ELSE block checking to see if
if < variable = Sprite1 >
| Point Toward Sprite1
else
| if <variable = Sprite2 >
| | Point Toward Sprite2
----------------------------------
etc.
I know it's ugly, but that was the only way I could get my project to work correctly when uploaded. And, I really wanted my project to work right on the web site. You get way more views that way.
Hope this helps you.
Offline
But it also doesn't work in the Scratch program. Even when I take out the variable and make it point to the bloon itself, it doesn't work. I'll try the workaround that you suggested.
Offline
Please! I need help!
Last edited by lemonpretzel (2011-03-04 18:47:01)
Offline
I see you're problem.
Variables can't be set to sprites, only the name of the sprites. Sprites can’t sense other sprites by just their name.
To fix it, I do not know.
Offline
is the distance to farthest baloon higher than range when he is suppose to point? try moving the point towards in to the repeat until
Offline