Interaction between two label in animation
hello there, i am new to java, i am trying to create a basic animation where a spaceship lands onto a landing strip and when this is successful a message congratulates the user, when unsuccessful it states so! how could i do this simply? is it possible to use if statements? for when they interact? Please help me!! :) Thanks :)
Re: Interaction between two label in animation
What have you tried so far? What do you have working? Where are you stuck?
There are countless ways to detect a collision, if that is indeed what you're asking about. Try to do a google search on collision detection, and see what fits into your head. I'm not entirely sure why you're using JLabels instead of doing the drawing yourself, but I suppose either way works.