I am working on a behavior to create a region when the screen is touched. The region's size is determined by where the touch ends/is released. I am not quite sure if the behavior I have made is correct.
This is to allow me to make multiple of one type change their animation without changing the animation of all of the same type of actor in the scene. Meaning, if they are in the region, the animation with change, if not, the animation will not change.
This is to make a conveyor belt that changes direction when touched. I am also going to try and spawn the actors inside the region as a conveyor belt at the same time, any advice as to how to do all of this, including whether or not what I have done is correct or not, would be greatly appreciated.
I have attatched a picture of the code as code blocks.