Is there any way to check if an object is ON the screen?
-
First of all, sorry for my bad english (I am colombian)
So,
I have this 5 x 5 screen:
O O O O O
O O O O O
O O X O O
O O O O O
O O O O OAnd the "X" is just antoher sprite. So, right now the X object is on the position X: 2 Y: 2.
If I move the X object, like, outside of the screen, then its position will be X: 5 Y: 2. Like this:O O O O O
O O O O O
O O O O O X
O O O O O
O O O O OIt isn't displayed because it's outside of the screen's range. So, can I check if an object is ON the state, but outside of the screen?
Like: If (sprite.isOnScreenRadio) {// do Some Thing }Thank You and sorry for my bad english.
-
Maybe you want this?
if (sprite.isOnScreen()) {}
-
@DleanJeans Yes, something like that