[Solved]Explosion Physics Effect: How?

For questions about using Classic.

Post » Mon Apr 11, 2011 1:26 pm

Well, I have two objects: bola and Movable, and I want to make the Movable get away from the bola. So I have physics behaviour in Movable, and I would like to apply a force towards a position on Movable, bu I don't know what are the position points. Like, I have bola position and Movable position, and I would like to know a position 100 pixels away from the Movable object, with the direction of the bola.

So, I have a rect with 100 pixels, but I don't know how to get the last rect's point position.

B
6
S
2
G
6
Posts: 48
Reputation: 2,936

Post » Mon Apr 11, 2011 1:29 pm

Lerp(from.x,to.x,,1.5)
Lerp(from.y,to.y,,1.5)
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

Post » Mon Apr 11, 2011 8:24 pm

Thanks.

PS: You have put two commas, and is just one. :)
Lerp(from.x,to.x,1.5)
Lerp(from.y,to.y,1.5)
B
6
S
2
G
6
Posts: 48
Reputation: 2,936

Post » Mon Apr 11, 2011 9:06 pm

Oops...
Also, a simpler method is also just move Moveable toward Bolla with a negative speed
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 8 guests