image change within a box it never physically touches the ball
artistaddy
Member Posts: 1
The issue I am having is I can trigger the image change of the squares the ball rolles on but I need the image change within a box it never physically touches the ball. Please see attached file
http://dl.dropbox.com/u/2972641/Initial Scene.png
Each time the ball comes into contact with one of the colored squares it triggers the image to change to a per selected image in the Large orange box. Also when the ball contacts with one of the colored squares, I would like a adjustable % of surface area to trigger image change
Any idea in how to set this up?
Thank You,
-Matt
http://dl.dropbox.com/u/2972641/Initial Scene.png
Each time the ball comes into contact with one of the colored squares it triggers the image to change to a per selected image in the Large orange box. Also when the ball contacts with one of the colored squares, I would like a adjustable % of surface area to trigger image change
Any idea in how to set this up?
Thank You,
-Matt
Comments
Are you looking for paid help? This thread is for paid services. If not, I can move it to Working with GameSalad.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Do you mean that you have a box-shaped actor with a circle image, and collision ules are being applied when it's not hitting the circle's pixels?
GameSalad does not have custom collision shapes yet, so that won't work.
You need to change the 'collision shape' to circle.
If this was not your problem, let us know.
Chakku
Now the % thing I'm guessing is you want the ball to say have more than 50% of the balls area inside the actor. The best way to to that is to track the distance of the ball to each square. You do that with magnitude. To keep your app from crashing from the massive number of constrains it would take to track all of the magnitudes of every square you only run the constrains when the ball is overlapping or colliding with the square. Then you will only ever have 3 maybe 4 running at a time.
I hope that helps you understand a little about what you wanting to do.
Please let us know if its completely off from what you are looking for.
Cheers