I have a game where you can collide with other actors, but they have a transparent box and when you hit the box you die, how do i get rid of the box ? or the canvas on photoshop ?
Comments
tenrdrmerMember, Sous Chef, Senior Sous-ChefPosts: 9,934
Crop your image. Gimp has an auto crop that cut transparent areas out. not sure about photoshop.
Comments
EDIT: Photoshop, too, has autocrop.
To solve the issue in GS, you can make your own custom collide rule (if the player's position is contained in a global variable). Just check
if player.x > self.x-10
if player.x < self.x+10
if player.y > self.y-10
if player.y < self.y+10
And you have essentially just created a 20x20 bounding box.