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:
[code:2g5y6fog]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:
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
I dont understand why it showing me that because I didnt typed that nowhere.
What i'm doing wrong ?