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
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
In the game I am developing, I have enemies coming down from the top, every time you get hit the score increases. I wanted to add an event: When the enemies reach the bottom, the score must decrease, I created the event but it does not work .. Why???
I put the link
Because you set if enemy.Y<0 instead of enemy.Y>LayoutHeight or ViewportBottom.
Sorry..but not function !!!!!!
Another option compare enemy.Y > mc.y.
One more thing, you didn't set the text back to score when decrease it.
Notice that you should destroy it when it reached the bottom.
sorry I'm new to the program Construct 2, and your answer is not clear :-(
Develop games in your browser. Powerful, performant & highly capable.
I mean you only set text when adding the score and forgot to set it back when decrease it.
You will need to compare Y of enemy > Your MC.Y
Then you destroy that Enemy to avoid the score keep decreasing.
thanks, but I solved with dop2000 ;-)
That's all I want to tell you at the beginning.
But glad that you solved it.