1
Ask a Question / stop behavior if killed?
« on: March 25, 2012, 09:54:17 pm »
i have a series of behaviors. one scene behavior creates object a every 0.6 seconds. my actor behavior switches the scene if the object is not destroyed within 5 seconds (theoretically). however, the scene switches after 5 seconds even when the actor died. can you help?
here is the actor behavior:
when created
do after 5 seconds
if self is alive
fade out
always
if mouse was pressed on self
incriment attriburte by 1
kill self
scene behavior:
when created
do every 0.6 seconds
create objects at x: random int between 0 and scene width, y: random int between 0 and scene height.
can someone please help?
here is the actor behavior:
when created
do after 5 seconds
if self is alive
fade out
always
if mouse was pressed on self
incriment attriburte by 1
kill self
scene behavior:
when created
do every 0.6 seconds
create objects at x: random int between 0 and scene width, y: random int between 0 and scene height.
can someone please help?