Streamer
Streamer

Reputation: 51

Andengine collision detection according to scaled size of sprite

I had Animated Sprites and i scaled down thoes sprites .. And increase the size of sprites. I want to detect collision of sprites according to scaled size.

Upvotes: 0

Views: 81

Answers (1)

Rama
Rama

Reputation: 1156

In this case you can do in this way:

For Example

    Sprite player, monister;
          if( player.cotains(monister.getScaleX(), monister.getScaleY())){
              // you can do what ever you want
}

Upvotes: 1

Related Questions