I used to do this by checking the X of player and the camera(invisible object)
Example: My screen's width is 3000 pixels. My viewport is 768x1366. So I will have conditions like these:
If player.X >= 384
OR player.X <= 2616 : Set camera X to player.X
You can check if the tile at Mouse position is empty or not by this condition:
Develop games in your browser. Powerful, performant & highly capable.
It depends on many reasons, maybe you created too many objects and not destroy them(they still outside of your viewport), use too many effects, ..etc.
One text and one global variable:
And the result:
My format is min: sec: milliseconds, so you can delete the milliseconds part.
There you go:
drive.google.com/open
I saw that you will need 8 steps to decrease the progress bar 1 second.
So my solution is:
you can put a sub-condition to check this before do an action.
you should add a condition that if the layer 6 visible-> you can interact with it. If NOT, stop interacting.
When destroy you repeat 4 times to create fragment at 4 imagepoint of your brick
You need to add to Score when colliding with an item and Subtract when colliding with an enemy.
Hope this could help you:
scirra.com/tutorials/978/example-load-data-from-json-to-array-and-populate-game-card
Willing to work with you.
Can you please share your info for me can contact?
Or you can reach me at my gmail: nguyenquocdong2009tux@gmail.com
or my Skype: DongNguyen602
Repeat 10 times
Pick instance tree.count-1
Create tree at tree.imagepoint 1
Note that you must set imagepoint 1 on top of sprite and imagepoint 0 at bottom