Transparent Box around actor, want to collide with picture not invisible backgrounds. HELP!!!
sarim987@gmail.com
Member Posts: 1
Hi, I have spent several hours looking for the answer to this, but i can seem to find it. In the game i am making, i have irregular shaped things falling from the sky. There is a man getting hit with these. I have a transparent background around each actor and EVEN when it doesn't hit the actor, it still says game over. What i am trying to say is that i have an invisible box around each actor, i want them to collide when they both hit the picture, not when the transparent boxes hit.
Can somebody please help me, im tired of looking for the answer. I will be very grateful if you help me.
Can somebody please help me, im tired of looking for the answer. I will be very grateful if you help me.
Comments
Otherwise, I'd go back and edit the image so it takes up as much space within the box as possible, and then re-upload into Gamesalad to use.
Need Help? Email Me | Templates | Full Game Source Code
Need Help? Email Me | Templates | Full Game Source Code
Keep in mind though, a lot of timers can kill performance..
One work around is to constrain the position of a rectangle to that of the character in your game, and make it a little smaller and use that as the collider, and not the character itself.
hope this helps anybody having the same issue.
Say you had 50 pixel padding of white space around your character, if an object collides with your character it will collide with that 50 pixel padding and not your character.