[Thread Prev] [Thread Next]
On 2 Jun 2007 at 7:57, nan zhong wrote:
> Thanks so much!!!
>
> There still some random announcements that come on especially
> during the 2nd level, as well as some errors in the command window.
>
> Nan Zhong
When I started playing the game I got:
finsh? didn't report anything to
This is your code:
to lastdot
when [finsh? = "true] [finshlevel1]
end
to finsh?
if (get "t25 "visible?) = "false
[op "true]
end
Notice that you don't specify what should
happen in the case where this condition:
(get "t25 "visible?) = "false
is false
You only say that, if this condition
(get "t25 "visible?) = "false
is true, the "finsh?" procedure should output "true
It seems to me that this is what you need:
to lastdot
when [not get "t25 "visible?] [finshlevel1]
end
it means: "when t25 is *not* visible do finshlevel1"
the "eating" procedure already has a forever inside
so you don't need to say:
launch [eating]
just say:
eating
> 2. After choosing Play Again after the game has ended the
> following text is shown in the command center:
>
> Showpointsbox(a text box) is already used in showpoints(a
> procedure)
I couldn't figure out why. But a way to solve the
problem is this:
your showpoints procedure creates and removes the
textbox every time.
to showpoints :text.input
showpointspage
carefully [remove "showpointsbox][]
newtext "showpointsbox [-235 100][500 300]
setfontsize 40
print sentence [You have a score of:] :text.input
transparent "showpointsbox
end
Why not just hide it?
using
hidetext
showtext
or even, why not just use a announce
this way:
to showpoints :text.input
announce sentence [You have a score of:] :text.input
end
> 1. Towards the middle or end of the game, random
> announcements come up that are in other non-running procedures.
The only possibility, of course, is that they
*are* running. I suggest that when your project is
running you keep an eye on the content of the
"processes tab". The Processes tab shows you what is
running.
Daniel
OpenWorld Learning
Previous by thread:
Re: Re: pacman woes
Next by thread:
coping textbox with its text from page to page by interactive mode
To save an attachment to your computer, PC users should right-click (Mac users, click and hold the mouse button) on the link and then choose 'save target as' from the pop-up menu. A window will then pop up in which you can choose a location for the file.
|