i have two sprites: a ball sprite and a pipe sprite.
on the ball is physics enabled: how can i determine if the ball is "in" the pipe (not half inside, i want it fully inside of the sprite)??
Is this something with overlapping at offset? i didn't find any suitable information about the offset overlapping.
thanks for any advice
Develop games in your browser. Powerful, performant & highly capable.
What do you want it to do in the pipe? Roll through it?
yepp, roll trough itone is vertical (entry of the pipe), the other is horizontal
So what I would do is make the pipe out of three sprites. Create two line sprites to represent the sides of the pipe. Then overlay a decorative sprite of the pipe over them. Then tell the ball to ignore physics of the decorative sprite.
hmm simple but good idea. thanks
well a better way is to use the hitbox from the editor