Collision

If I have a few circles, how can I get them to collide and roll off of each other? I tried it and when they collide, it's like there's an invisible barrier that they hit before they are even close to each other and just roll off of that.
Comments
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Don't drag your oval to make a circle . . . double click on it and then in the left hand panel that pops up make sure its X and Y dimensions are the same . . . you can simply do it by eye by dragging the 'handles' but it's quicker and more accurate to double click and change the numbers.
"What do you mean the X and Y. I don't see that anywhere except for the position."
X dimension means width.
Y dimension means height
"When I have it in photoshop and it's the same size, there are still little edges on the circle. Won't that make it so it's like an invisible square around the circle?"
Yes, any area you make transparent ("invisible") in Photoshop will be transparent in Gamesalad.
But when it comes to detecting collisions Gamesalad doesn't care if a part of the image is green, blue, transparent, purple or yellow and brown stripes . . . . all it can see is a square file, that's what it will use to bounce of other stuff . . . . the only other option you have is to make the collision area circular . . . that's it, a square or a circle.
"I made my ball in PS and it fits in a 30x30 pixel square. I open up GS and make it an actor. I then drag it into the scene and it's huge with a huge square around it. I check the size and it freaking says, 320x480. Why is there an edit the size square that's as big as the iPhone screen?"
Make sure when you are in Photoshop that your image is 72 ppi.
>". . . when I click on the ball when it's in the scene, that stupid resize square is still around it . . . . "
You can't get rid of the resize square.
>"I made the collision area circular and still nothing."
What were you hoping would happen ?
Draw a circle in Photoshop, make sure the circle goes right up to the edges of the file, make sure the file is 72 ppi, import it into Gamesalad and then make sure the collision shape is set to circle.
It really is as simple as that.
"I clicked on that ball and the resize square is really close to the ball."
Great, that's how it should be, is there a reason you are telling us this ?
8-X
Here, I have made you a file . . . http://www.mediafire.com/?m4vfrf2m0slmefa
In this zipped archive is one Gamesalad file and one Photoshop PNG, drag the PNG onto Photoshop to see what your file should look like when you are making it in Photoshop - check the Image Size to see that it is set to 72 ppi.
"Alright man, I figured out my problem. Thank you so much for helping me out."
No problem, it will all get easier and more obvious the more you play around with Gamesalad.
Just so others can learn from your issue . . . . what was the problem in the end . . . ?
Gamesalad will always put it's resizing box exactly on the edge of your imported file, so the way they got the resizing box so close was to make their circle image as wide and as tall as their canvas in Photoshop.