How to create Rule when actor goes out of screen destroy it ..
Gamexs
Member Posts: 35
Hello,
i have situation when actor goes out of screen it will destroy and make game over .
i have situation when actor goes out of screen it will destroy and make game over .
Comments
When actor position.X < 0 or actor position.X > game.screen.size.width then destroy actor. And likewise for Y if you want to destroy it if it goes past the top or bottom of the screen
You need to keep in mind that the actors x and y position is in the centre of the actor
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page