I have a super basic/baby question, where I am struggling with the concepts in StageXL. I have a ball that I want to drop from the top of the canvas to the bottom (height = 800). Once the ball hits the bottom, I want an event to occur. I think this is called a collision, but not completely certain. Maybe I am off on my terminology already, but I cannot seem to find a better term.
I would think this is done by opening a stream, and waiting for ball.y == 800. Once this happens, then trigger the event. However, I am not seeing that this is the case, and so I am struggling with how to do something basic like this.
I see this thread: https://groups.google.com/forum/embed/?place=forum/stagexl&showsearch=true&showpopout=true&showtabs=false&hideforumtitle=true&hl=en&parenturl=http%3A%2F%2Fwww.stagexl.org%2Fforum.html#!searchin/stagexl/collision/stagexl/4IKwMaX9DNc/QUPHjYIpDXMJ. However, I just don’t understand it at all. Specifically, why is advanceTime used in this circumstance? More broadly, why is time a factor when two objects contact each other?
--
You received this message because you are subscribed to the Google Groups "StageXL" group.
Visit this group at https://groups.google.com/group/stagexl.
To view this discussion on the web visit https://groups.google.com/d/msgid/stagexl/2c794184-4d7d-4095-a5b7-13e893435bd8%40googlegroups.com.