Hundreds of features to explore
Games made in Construct
Your questions answered
Trusted by schools and universities worldwide
Free education resources to use in the classroom
Students do not need accounts with us
What we believe
We are in this together
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
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!