Hi guys,
How do I use SELF in an action?
I have lots of the same enemy on the same screen and I want the ones that have their backs to the player to turn around and face him, but I dont know how to use SELF in an action so now everyone turns around.
so please help.
Best Regards Wonamik
Just to clarify I want to be able to use instance variable just within that particular sprite, so it dont effect all other of the same sprites on the same screen.
I solved it, thanks anyway.
Develop games in your browser. Powerful, performant & highly capable.
You should use the for each condition
system for each enemy
enemy - variable = blahblah
-- enemy do action.
or you could pick enemies based on the variable
system pick enemy where variable = blahblah
-- enemy do action
Thank you!