I wish to dynamically generate sprites at either left or right side of the screen. I know this can be done by putting an expression.
Question is, based on where it was created I need to set certain values to that instance's variable. How can I do this ?
Every time I create an instance, I wish to set values to that instance. Like speed/direction etc.
So, how I can reference the newly created item to set these values ?
Develop games in your browser. Powerful, performant & highly capable.
You just need to set these values in the same event right after creating the object. Construct picks that object automatically
Every 2 seconds >