[quote:2jegvdyj]maybe he means like the 's' plugin, but more user friendly
that idea is actually the most appealing to me , 'S' is almost everything i need at the moment but has bit awkward handling imo. (no offence intended)
Thanks Rojo, it helped alot.
Another problem came out :
It seems that only one cell at a time can reproduce.
http://www.speedyshare.com/files/241792 ... riment.cap thats the one.
Hey all, im now experimenting with Alife game. Im trying to make my "Cell's" reproduce and mutate wich is represented by colour filter changed by random number.
This is roughtly what i want to achieve:
If Cell has enough eneregy get Cell colour Spawn new cell set new cell colour to parent cell colour +random[/code:2g5y6fog] The script i made so far goes like that: [code:2g5y6fog]import random d=Cell.Value('color') r=System.GetRed(d) b=System.GetBlue(d) g=System.GetGreen(d) Cell.SpawnObject('Cell',1) a=SOL.Cell a.Filter=System.rgb(r+random.randint(-10,10),g+random.randint(-10,10),b+random.randint(-10,-10)) a.SetXY(random.randint(0,10),random.randint(0,10)) [/code:2g5y6fog] but when it is executed it generates error : [code:2g5y6fog]File 'string' line 1061(??) def swap values (self,p0,p1,p2,p3) syntax error invalid syntax [/code:2g5y6fog] I dont understand why it showing me that because I didnt typed that nowhere. What i'm doing wrong ?
GAH!
I must explain myself: built in Pyhton editor suggested usage of "RGB"(caps) i thought that it was correct.
I ran into a problem while trying to play with that new Python functions.
System.Create('Sprite',1,random.randint(200,400),random.randint(200,400)) SOL.Sprite.Filter=System.RGB(255,255,255)[/code:3r40wsxi] I simply wanted to set the colour filter of newly created sprite, but unlike setting the position it thrown an error "NoneType object is not callable"
Im now struggling to understand the functionality of "S" plugin.
Agreed 100%.
In my app I want my new spawned objects "inherit" some variables from their ancestors, or object that created them. Is it possible using events?
Thats awesome, I thouth that they actually should have their own list in the wiki, but auto downloader is better.
Don't worry, i know what "alpha" stage means. Im waiting for the release.
Develop games in your browser. Powerful, performant & highly capable.
Lucid You are doing great work. That plugins are awesome.
Member since 8 Jul, 2010