Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Construct 3 runs in the browser & works offline
Students do not need accounts with us
Free education resources to use in the classroom
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
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
Develop games in your browser. Powerful, performant & highly capable.
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.
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