Hello,
The following script does not work because when I ask the value of the Vx or Vy variable of another sprite, it answers nothing. The same work on a smaller example. The script is there raffalli.eu/public/Ballons.xml
Hello,
The following script does not work because when I ask the value of the Vx or Vy variable of another sprite, it answers nothing. The same work on a smaller example. The script is there raffalli.eu/public/Ballons.xml
Hi, welcome to the forum!
In your code you have
But in the palette it looks like this:
because that second input has to be an expression that the other sprite will evaluate. But you just have a call to Vx, and in Snap! all the inputs are evaluated before a block is called. So essentially you're just doing
ASK (ITEM) FOR (5)
or whatever this sprite's Vx is.
So what you want is
Argh, Thanks. The grey box is a "quote"!!! In fact it is hard to put something inside the grey box.
And your answer was very quick.
Just another question: I find snap a bit slow on that example. Am I doing something wrong ?
I answer myself, turbo mode get you reasonable speed.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.