Is making something rotate around something else possible?

Just started using Construct 2? Post your questions here

Post » Mon May 30, 2016 7:47 pm

I would like to make a pong-like game, but i'm not sure what construct 2 is capable of.
Can you tell me if construct 2 is able to make something rotate around something else, and if yes, how to do that?
B
4
Posts: 4
Reputation: 202

Post » Mon May 30, 2016 8:42 pm

B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950

Post » Mon May 30, 2016 11:30 pm

It's not what i wanted, but it's my fault, hehe =P.
It should rotate like this only when I press a button. http://postimg.org/image/4yj8s0th7/
So it does a 360° and be in the same position as before.
We ccould make Sprite invisible and make it rotate on the press of a button, then make Sprite 2 rotate on itself, but any speed of rotation wouldn't work, probably because that speed is some strange and long number. I tried it on Flash, trust me.
B
4
Posts: 4
Reputation: 202

Post » Tue May 31, 2016 1:56 am

ImageImageImage
B
71
S
22
G
247
Posts: 3,756
Reputation: 137,558

Post » Tue May 31, 2016 9:32 am

Yes, it is really close =D.
But there's still a problem.
Sprite 4 will be an avatar, so it shold be movable.
I can pin Sprite4 to the position of Sprite, so that if i use the 8-movement behavior on Sprite , then Sprite4 will follow it.
Ok, that was easy to figure out.
But moving Sprite in any direction will change the angle of Sprite2 toward it, so this will happen: http://postimg.org/image/8jvs5gx4r/
I'm not sure how to avoit it...

http://www.filedropper.com/them0stdiffi ... teeverum_1
B
4
Posts: 4
Reputation: 202

Post » Tue May 31, 2016 2:04 pm

Pin Sprite to Sprite4 with Position only,
http://www.blackhornettechnologies.com/ ... M_BHT.capx
ImageImageImage
B
71
S
22
G
247
Posts: 3,756
Reputation: 137,558

Post » Tue May 31, 2016 5:17 pm

Sounds familiar.
B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950

Post » Tue May 31, 2016 9:40 pm

Wow I must be really dumb :lol: but I really didn't think this kind of thing that you don't normally see in a game would be possible in a non-coding drag-and-drop software ☺ thank you.
Sounds familiar
i too find this mechanics kinda familiar. :P
B
4
Posts: 4
Reputation: 202

Post » Tue May 31, 2016 10:44 pm

Ah yes, its a deja-vu, you saw it in my capx. : )
B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950


Return to Beginner's Questions

Who is online

Users browsing this forum: Cubeeo and 6 guests