Thankyou vaidas !
Edit: there's a bug on typing (number)comma(number)comma that I haven't seen before, but I can't fix it for it's complexity ; when typing two numbers with comma.
Xray I don't think that that problem is mine, because the syntax is correct.
I think it's problem of algodoo, sometimes it happens to me too.
If you don't belive me try creating a box and coding it's text as :
{
"" + (3 / 8)
}
Thankyou!
We could actually suggest on the forum to fix that huge problem.
Or at least it is for me because its easiest to type an integer value without typing the decimal point.
You are typing numbers instead of a variable.
Try:
scene.my.test = (a,b,c)=>{c=a+b};
> scene.my.test(1,2,scene.my.variable)
scene.my.variable will be equal to a+b, namely, 1+2.
Wow really good! I have learned scripts from kilinich too but just watching it on the scenes and the scripts that I don't actually understand are the scripts form he's mouse over polygon scene, the laser that hits a polygon and changes it's surfaces an the deformable polygon scene. As you can seeall are polygoms! .
Xray, nice idea but as chemist said this scene is nos well maded at all, it could be improved using randomness if the fish isn't near enough to move it, you could actuaclly add the possibility of moving to all directions (x,y) vectors.
Xray, I actually give you the copyright of this example to make your own game! I haven't got actually enough time to make scenes so Im not avaiable to make them because of my High School infinite exams. Oldo, I cannot do anything too on the weekend!
Edit I hope this scene helped you to have a better idea of how to make randomness or at least, help you on anything!
Im thinking to the best fishing game with "animations"! changing velocity when ther's something frightening to the fish or to move with a schoal and a man fishing them with a fishing rod! Wow.. it could be very ,very ,very rated!
gm= a pixel (box) tar= target ending line point (app.mousepos), in this case there's not ending point. d_from= starting point, (where th line stars displaying([0,0])). m= intrinsic function with 2 arguments. Maths the angle between 2 points (startingpoint,ending point). pv= intrinsic function with 1 argument. Makes a value to positive being negative or positive, pv(-1)= 1; pv(1)= 1;. gm_a= Angle between the starting line point ang the pixel (box), uses the m function. tar_a= Angle between the starting point and the ending one, uses m function. pv(gm_a-tar_a)*3= the difference between gm_a and tar_a.
The other array variables are the rest of the colorHSVA features.
I hope you understood it, Thanks! .
Edit: The display variable is able to change in the text box, if you know how to fix the 2 problems, or at least one of them please upload the scene without the problems.
I did it on purpose, I wont to make the code continuosly defined to change the code if it failed working and directly change it, why it isn't good?.
I did it o purpose to the user help me too!
By the way, do you know how to fix the problems on the function?