Hello guys, I am totally new to programming its self, however I understand it fairly well, however I got some issues with finding certain ways / expressions to what I want to achieve. Hopefully I will get some help here.
So, what I want to do:
A) If player collides with another object, it should check wether the player is bigger or smaller than that object ( in actual pixel count )
B) If the player is bigger than the object, than the player should change size by 10% of the object size that it has collided with.
C) If the player is smaller that the object, than the player should decrease in size by 10% of the object size that it has collided with.
* The thing is, that my player will collide with lots of different shapes, and I really do not want to take just width / height in the account, I would like to take in the account the actual size of the object, I think that something like pixel counting ( after eliminating transparency ) would be best solution, if at all possible.
Thank you very much & please accept my apologies for my rather bad English.