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.
No problem BlackMask
You can toggle variable boolean in event sheet on same key pressed.
If true, pause game and false is unpause.
Develop games in your browser. Powerful, performant & highly capable.
As dop2000 said, you need to set the animation speed to 0.
And you can set the frame of sprite to a number right after you create it.
The enemy remaining is the instance 0 of your enemy.
You can do an action that
On Start Layout: destroy enemy
Because you set if enemy.Y<0 instead of enemy.Y>LayoutHeight or ViewportBottom.
You do not have permission to view this post
Do your have any instance of that object in your layout? You must have an instance in any layout to spawn object.
And where did you spawn it? Maybe it was spawned outside.
Too many keywords could make you confusing.
Try to store in another arrays.
Then you can combine them by the item ID.
Hi randomly, could you reupload the capx? Thanks.
I have made an example:
drive.google.com/open
Hope it could help you!
Cheers.
Could you post some screenshots of your eventsheet?
I found on Github:
github.com/rexrainbow/C3RexDoc/blob/master/repo/index.md
Here is the screenshot of the event will look like:
You can use tokenat to get each letter.
Then insert each one into a temporary string.
When the letter index is equal 4, you will insert 0.
After that, you set your string equal temporary string.