Imagine you are playing a game on your phone , its about cars so you are driving one, suddenly the velocity indicator shows -10 and you get sad beacuse you are driving forward. Then you think that its not a good game because of its bugs and you rate 0 for the game.
WOW!! I haven seen the original scene but now that I did, I saw the most impressive script ever maded, i think I'll learn something of tatt's code! OMG!
Thankyou guys.
Chemist - Oh I didn't know that, thankyou!
Xray - I maded that script just to make the most randomness as possible and making it complex helpt me to do it, Thankyou.
Xray - Uh sorry I forgot to remove that code into update sorry! , I wanted to make the code work with _local variable called _runOnce, but I saw that it couldn't work so I maked it work as normal in post step. In your problem - I think you could have maked a mistake , because you didn't set the variable addPlane3D as _local variable thats the problem, in addition, the code spawner is on eval(""+text) too so it couldn't work. How to fix it if you'll not gonna modify the function - set the variable "addPlane3D" to the _Local variable creator (the text box on the top of the script menu):
_addPlane3D = function code here
Then go to postStep event and type :
(e)=>{_addPlane3D([0,0],app.mousepos,20.0)}
Run simulation.
Jester13 - I learned aall this stuff by myself just trying things you can finally understand why they happens and how they work, you should try it .
this -> {} it's how Algodoo organizes an object that has at the same time other variables or Children that could be called as _local variables , scene.my.variables or normal ones(I think).
For example: Alice -> {
Age := 20;
Height := 1.60;
Weight := 50
};
Usage: Alice.Weight
The problem is that you could not make new ClassObject with children by yourself or if there's any way I please ask Kilinich for a way of doing it.
You can see many things with ->, the easiest way to see one is: make a box , select it and press ctrl+c , the go to its text and press ctrl+v, at the bigining of the text appears fileInfo -> {...}.
I cannot answer you becouse I don't really understand what is the finally of scene.my.e and I don't really understand how the hell does it work, as you, I don't understand this scene
Kilinich if you take a look on this comments could you please explain me how PolyTrans changes surfaces? because I can't see any connections between any surface and that local variable, is possible to change the surfaces of a polygon within destroying it and spawninh other new one?
Xray - Sorry if you don't like what keys to use, I will improvise the usage of the keys on my next scene that uses keys.
Xray & electronicboy - This game works really good to my computer, I have a laptop so I thought that the scene should work better or equal to other people, I don't actually know what fails has it, you guys SHOULD try the real game on your smartphones and see the differences.
The Linkage - That's true .
I don't know how to edit the thumbnail, could you please explain me how to?
Kilinich, if you say that is only possible change surfaces by respawning, then, how the hell do you change the surfaces of each polygon within any scene.addPolygon code?
Luezma, I thoungth exactly the same!!, I think that detecting when a surface is in a polygon is possible using (as Xray mentioned) kilinich function over polygon + xFor function + AnyOf function, when I saw Bumpkin's "space rocks" scene I thougth that detecting when colliding (not physicly) was possible.