Hello,

I am creating a game, where I have 4 classes. The Game(main class), the player, level1 and level2.

I have created an object(key) on the level1 class. Now I want the key to disapear when the player touches it.

I have implemented the collision listener on my level1 class

I also tried the intersect method but does not work.

That's very interesting, but without seeing a single line of your code you are unlikely to find anyone clairvoyant enough to tell you what's wrong with it.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.