There you go: drive.google.com/open
I edited with C2 r269.
You do not have permission to view this post
The problem here is you are using "=", the condition will be correct once when it = 8, and if with other value greater than 8, it stops the action whithin this condition.
I suggest that you should use >= or <=.
Cheers.
Create a variable that count number of destroy enemy.
If variable < 5 -> pick random enemy.
On Enemy Destroyed -> Add 1 to variable.
Then reset variable to 0 if you want to reuse.
You can use Local Storage to store your checkpoint, then load it back and bring player to that question.
This is what I have: block-puzzle.netlify.app
You can set the text into number variable, all characters are not number will be converted to NaN, then you remove it, you can check in my example"
In my opinion, this issue could related to:
- Something keep creating instance in your game.
- A loop that keeps running to endless.
Please review your event sheet and check how many instances when running game.
I used Pin(rope style) and combine with Physics:
crazygames.com/game/hit-red-button
You should set original imagepoint of the square to x=0, y=0.
The square has instance variable to check how many blocks inside.
The collision of the square also smaller than the image to avoid it overlaps the blocks in next squares.
I checked if the blocks inside the square equal 9, then set all blocks is matched.
The check function is using from the example, it runs a loop to check the tiles that overlaped by block which is matched and destroy them.