Checking if an actor is out of the scene?
AppArcade
Member Posts: 64
I'm making a game where I need to change an atribute when an actor is out of the screen.
Anybody knows how to do this, would be a lot of help!
Thanks!
Anybody knows how to do this, would be a lot of help!
Thanks!
Comments
When your other actor overlaps or collide with that "out of scene" actor, use any rule you need
Hope that will help you
When ANY attribute :
self.positionY > 480
self.positionY < 0
self.positionX > 320
self.positionX < 0
depend on your scene size and orientation , but you got the point.
Roy.
Exemple if your actor is 100x100, add 50 for Y and 50 for Y
(Sorry for my english...)
yes you are right, if the idea is so the actor graphic is out so you need to play with the numbers.
thank you for clarify this one, (my english is bad as well we are on the same boat)
Roy.
I will try both solutions and see what works the best for me!
And TSB Yes it destroys when it leaves the screen
cheers!!!