How do I satellite motion

Just started using Construct 2? Post your questions here

Post » Mon Jul 21, 2014 11:10 pm

Hello there! I want to run a satellite type movement but is a spike ball that has a string attached to the center.

Something like this:
Image

Thank you very much! :)

@brunopalermo
B
47
S
12
G
5
Posts: 124
Reputation: 6,851

Post » Tue Jul 22, 2014 12:59 am

This is a simple way to do it. Hope it helps.
You do not have the required permissions to view the files attached to this post.
B
24
S
9
G
4
Posts: 1,646
Reputation: 6,596

Post » Tue Jul 22, 2014 4:16 am

Codah that's wonderful thanks I wanted to do that in one of my project. Thanks again mate CODAH
B
261
S
46
G
15
Posts: 1,997
Reputation: 41,873

Post » Tue Jul 22, 2014 4:50 am

@Lordshiva1948 really? :geek: Well, glad it helped :lol:
B
24
S
9
G
4
Posts: 1,646
Reputation: 6,596

Post » Tue Jul 22, 2014 4:53 am

@Wenaptic - Use image points and the "Rotate clockwise" or "Rotate counter-clockwise" actions. You can also use the "Pin" behavior for the satellite and the "Rotate" behavior for it's center of rotation.
Twitter | Facebook | Instagram

If you play Puyo Puyo games, you can meet me at the Puyo Puyo English Community Discord: https://discord.gg/0k41S8ARwvY2iTIQ
B
105
S
24
G
11
Posts: 699
Reputation: 12,982

Post » Wed Jul 23, 2014 1:12 am

Thanks @CODAH for your quick response!
For now I can not open the CapX and asking me a plugin that I do not find.

@Tetriser your advice works! Thank you very much! :D

PD: I leave the examples to be seen working.
You do not have the required permissions to view the files attached to this post.
B
47
S
12
G
5
Posts: 124
Reputation: 6,851

Post » Wed Jul 23, 2014 1:15 am

Wenaptic wrote:Thanks @CODAH for your quick response!
For now I can not open the CapX and asking me a plugin that I do not find.


darn, sorry about that. Probably the 'Pin to image point' behaviour... highly recommended BTW..
B
24
S
9
G
4
Posts: 1,646
Reputation: 6,596

Post » Wed Jul 23, 2014 1:31 am

@CODAH not worry. Your intention to help is invaluable to me. I searched the forum behavior, but found this one. Also with the help of @Tetriser already solved. :)
B
47
S
12
G
5
Posts: 124
Reputation: 6,851

Post » Wed Jul 23, 2014 4:33 am

Wenaptic wrote:@Tetriser your advice works! Thank you very much! :D


You're welcome. :)
Twitter | Facebook | Instagram

If you play Puyo Puyo games, you can meet me at the Puyo Puyo English Community Discord: https://discord.gg/0k41S8ARwvY2iTIQ
B
105
S
24
G
11
Posts: 699
Reputation: 12,982

Post » Wed Jul 23, 2014 5:30 am

set position to
x: pin.x+cos(angle)*radius
y: pin.y+sin(angle)*radius

this is such fundamental math, anyone making games should invest time into learning basic trig concepts. You'd be doing yourself a great service. The pin behaviour is just using the same method, wrapped up into the behavior. Learn the math, you'll be able to do complex things without relying on behaviours.

http://en.wikipedia.org/wiki/Unit_circle
B
79
S
13
G
8
Posts: 1,977
Reputation: 9,947

Next

Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 1 guest