actor magnetism and accelerometer angle

Hi Folks,
First off I come from a design background so go easy on me regards my coding knowledge
So before I go to make my million dollar game...ahhemmm I wanted to learn a few basics, so with this in mind I plan on making an educational game. One of the core mechanics is getting a ball to rest on a hotspot (zone A). What I want to happen is if the accelerometer reaches a certain angle the ball will tip out of the hotspot zone.... see sketch below.

So from looking at @tshirtbooth tutorials and a few other templates this is what I have gathered so far…
1. I need to set up x and y attributes to track the ball’s position
2. I need to detect the hotspot and set a rule up in the ball code for that.
(Which I can do, but it does not look great as it snaps to the hotspot. )
What I want to do is…
1. When the ball reaches Zone B that it slows down slightly and if its velocity is too fast it would veer off in a new direction just like a golf ball hitting the rim of the hole.
2. If the ball is moving slow enough that it sits in Zone A unless hit by another object at a certain speed or that the iPad/iPhone it tilted up to much.
From what I have read I am thinking that the magnitude call is something I should use, just not 100% sure how to integrate it in….
If anyone could give me a few pointers just to get me started I would very much appreciate it.
Cheers All
First off I come from a design background so go easy on me regards my coding knowledge

So before I go to make my million dollar game...ahhemmm I wanted to learn a few basics, so with this in mind I plan on making an educational game. One of the core mechanics is getting a ball to rest on a hotspot (zone A). What I want to happen is if the accelerometer reaches a certain angle the ball will tip out of the hotspot zone.... see sketch below.

So from looking at @tshirtbooth tutorials and a few other templates this is what I have gathered so far…
1. I need to set up x and y attributes to track the ball’s position
2. I need to detect the hotspot and set a rule up in the ball code for that.
(Which I can do, but it does not look great as it snaps to the hotspot. )
What I want to do is…
1. When the ball reaches Zone B that it slows down slightly and if its velocity is too fast it would veer off in a new direction just like a golf ball hitting the rim of the hole.
2. If the ball is moving slow enough that it sits in Zone A unless hit by another object at a certain speed or that the iPad/iPhone it tilted up to much.
From what I have read I am thinking that the magnitude call is something I should use, just not 100% sure how to integrate it in….
If anyone could give me a few pointers just to get me started I would very much appreciate it.
Cheers All
Comments
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
Hi that would be really cool, I have been busy sorting art as I had come to this blocker. so any help would be great.