Heeeelp :-) 
Author Message
 Heeeelp :-)

Hello,

My name's Andrea and I'm a LOGO student in Brazil. LOGO is a
necessary academic subject at my Technology Education course.

I heard about the group through Yahoo and I'm very happy to find it
because I have some doubts about it and I need some help. I know my
questions might be very simple for you but not for me.

If anybody is willing to help me, I'd appreciate a lot.

I'm trying to create an exercise where the student needs to find
hidden animals in the background. It's a simple procedure INSIDE /
OUTISE. But I can't make it work. If you are willing to help me,
please read the code below and try to find my mistake. I did
everything I could but I simply can't make it work. You can change
the names of the graphics.

to tarefa10
 draw
 ht
 loadscreen "ceu
 pu
 setpos [-132 214]
 settt [Arial][15 400 1]
 ttext [Move the turtle. Find the animals in the sky!]
 set
 setpos [-46 -107]
 if inside? [-350 213 100 100][setshape "fantasma wait 500]
 if inside? [-350 213 100 100][setshape "tarta03]
 if inside? [122 255 100 100][setshape "bruxa wait 500]
 if inside? [122 255 100 100][setshape "tarta03]
 if inside? [-348 -35 100 100][setshape "abc wait 500]
 if inside? [-348 -35 100 100][setshape "tarta03]
 if inside? [147 -3 100 100][setshape "abutr1 wait 500]
 if inside? [147 -3 100 100][setshape "tarta03]
end

   I hope somebody can help me. If not, thanks for your patience
reading this message.

   Andrea Dallago

To unsubscribe from this group, send an email to:

LogoForum messages are archived at:
http://www.*-*-*.com/

Your use of Yahoo! Groups is subject to http://www.*-*-*.com/



Tue, 11 May 2004 11:25:30 GMT  
 Heeeelp :-)
 Andrea, I don't recognize the kind of Logo you are using?   Everyone should
tell us what kind of Logo they are using if they want help making a specific
program work.

Just as Ana from Buenos Aires - Argentina told us she is using MSWLogo (6.4)
Actually Ana, my version is 6.4h.    Dale
---

To unsubscribe from this group, send an email to:

LogoForum messages are archived at:
http://groups.yahoo.com/group/LogoForum

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/



Tue, 11 May 2004 11:26:18 GMT  
 Heeeelp :-)

Quote:
>to tarefa10
>  draw
>  ht
>  loadscreen "ceu
>  pu
>  setpos [-132 214]
>  settt [Arial][15 400 1]
>  ttext [Move the turtle. Find the animals in the sky!]
>  set
>  setpos [-46 -107]
>  if inside? [-350 213 100 100][setshape "fantasma wait 500]
>  if inside? [-350 213 100 100][setshape "tarta03]
>  if inside? [122 255 100 100][setshape "bruxa wait 500]
>  if inside? [122 255 100 100][setshape "tarta03]
>  if inside? [-348 -35 100 100][setshape "abc wait 500]
>  if inside? [-348 -35 100 100][setshape "tarta03]
>  if inside? [147 -3 100 100][setshape "abutr1 wait 500]
>  if inside? [147 -3 100 100][setshape "tarta03]
>end

Andrea,

I recognize that it's MegaLogo.
(MegaLogo is the Portuguese/Brazilian version of SuperLogo/Comenius Logo).

My comments to your code:

1.

the 8th line contains a command
set
It is not a valid primitive command of MegaLogo. Have you defined a command
set?
If so, what is its purpose?
If not then it seems to be a typing mistake.

2.

In the 9th line you set the position of the turtle to [-46 -107]
Then in the consecutive lines you test for specific rectangles to change
the turtle's shape temporarily
But there is no command to move the turtle. The turtle will just stay at
[-46 -107]
What is your idea about moving the turtle?
Should it move automatically/randomly? Should it be driven by keyboard?
Should it follow the mouse?
The code will depend on your answer.
But anyway your code must be split to two parts. First nine lines (but
without the SET command if it is not a defined
procedure) is the initialization code - it should be run just once as it is
now.
The rest of your code (the series of if inside? statements) must be
executed repeatedly after each move of the turtle.

Somehow like this:

to tarefa10
  draw
  ht
  loadscreen "ceu
  pu
  setpos [-132 214]
  settt [Arial][15 400 1]
  ttext [Move the turtle. Find the animals in the sky!]
  setpos [-46 -107]
  tarefa10a
end

to tarefa10a
  ; here you must put the code which will move the turtle a bit (either
automatically either depending on
  ; keyboard keys pressed or mouse movements or ...)

  if inside? [-350 213 100 100][setshape "fantasma wait 500]
  if inside? [-350 213 100 100][setshape "tarta03]
  if inside? [122 255 100 100][setshape "bruxa wait 500]
  if inside? [122 255 100 100][setshape "tarta03]
  if inside? [-348 -35 100 100][setshape "abc wait 500]
  if inside? [-348 -35 100 100][setshape "tarta03]
  if inside? [147 -3 100 100][setshape "abutr1 wait 500]
  if inside? [147 -3 100 100][setshape "tarta03]

  ; this call ensures that this procedure will be run repeatedly
  tarefa10a
end

If you decide how to move the turtle, then I can help you more...

Note that the program will not stop automatically, you can play it infinitely.
To stop it you must use the STOP button on the toolbar or the F12 key.

Peter Tomcsanyi

To unsubscribe from this group, send an email to:

LogoForum messages are archived at:
http://groups.yahoo.com/group/LogoForum

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/



Tue, 11 May 2004 11:30:19 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Heeeelp :-)

2. heeeelp, how do I

3. heeeelp!!

4. Heeeelp before I shoot myself

5. bsr r1,r2 Heeeelp

6. HEEEELP ! Looking for a memory dumper

7. Heeeelp! Cobol, windows 95 and Novell

8. heeeelp!

9. heeeelp - socket problem

10. Tk on solaris 2.4 (Heeeelp !)

 

 
Powered by phpBB® Forum Software