ball behaviour, change angle of motion?

For questions about using Classic.

Post » Thu Mar 05, 2009 7:06 pm

I'm trying to change the angle of motion for an object with ball behavour but it doesn't seem to work, the object still moves with the angle it already has.
any idea?
B
3
S
1
G
3
Posts: 45
Reputation: 1,140

Post » Thu Mar 05, 2009 7:31 pm

Can you post a .cap?
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600

Post » Thu Mar 05, 2009 8:06 pm

I'll do it...
B
3
S
1
G
3
Posts: 45
Reputation: 1,140

Post » Thu Mar 05, 2009 11:12 pm

http://willhostforfood.com/access.php?fileid=57648

Here's an examlpe, I'm trying to change the direction of the balls every second but doesn't work.

While we are here : it would be nice if you could set up a property so that the balls bounce off the screen edges autiomatically , at the moment I think you have to hide solid objects on the edges in order to have that...
B
3
S
1
G
3
Posts: 45
Reputation: 1,140

Post » Thu Mar 05, 2009 11:19 pm

Well right after posting I found the explanation!
If you leave "rotate object" checked in the ball behaviour setting you can only change the "angle" and not the "angle of motion" (from the ball behaviour tab).
If you uncheck "rotate object" you can change the "angle of motion"
B
3
S
1
G
3
Posts: 45
Reputation: 1,140

Post » Fri Mar 06, 2009 12:55 am

Oops, it was a bug, 'set angle of motion' should work even with 'rotate object' enabled. It's fixed in the next build.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 4 guests